1apple2(6x) XScreenSaver manual apple2(6x)
2
3
4
6 apple2 - Apple ][ display emulator
7
9 apple2 [-display host:display.screen] [-foreground color] [-background
10 color] [-window] [-root] [-mono] [-install] [-visual visual] [-program
11 command to run] [-basic] [-slideshow] [-text] [-meta] [-esc] [-bs]
12 [-del] [-fast] [-fps]
13
15 The apple2 program simulates an original Apple ][ Plus computer in all
16 its 1979 glory. It also reproduces the appearance of display on a color
17 television set of the period.
18
19 There are 3 modes: basic, slideshow, and text. Normally it chooses a
20 mode randomly, but you can override with the -basic, -slideshow, or
21 -text options.
22
23 In basic mode a simulated user types in a Basic program and runs it.
24
25 In slideshow mode it chooses a number of images from the image source
26 you configured into XScreenSaver and displays them within the limita‐
27 tions of the Apple ][ display hardware. With only 6 available colors,
28 you can only make out the general shape of the pictures.
29
30 In text mode it displays the output of a command or the contents of a
31 file or URL (via the default xscreensaver-text(6x) program, which can
32 be overridden with -program).
33
34 In text mode, it is also a fully functional (if anachronistic) vt100
35 terminal emulator.
36
38 apple2 accepts the following options:
39
40 -window Draw on a newly-created window. This is the default.
41
42 -root Draw on the root window.
43
44 -mono If on a color display, pretend we're on a monochrome display.
45
46 -install
47 Install a private colormap for the window.
48
49 -visual visual
50 Specify which visual to use. Legal values are the name of a
51 visual class, or the id number (decimal or hex) of a specific
52 visual.
53
54 -basic Choose basic mode
55
56 -slideshow
57 Choose slideshow mode
58
59 -text Choose text mode
60
61 -program sh-command
62 In text mode, the command to run to generate the text to dis‐
63 play. This option may be any string acceptable to /bin/sh. The
64 program will be run at the end of a pipe, and any characters
65 that it prints to stdout will be printed on the Apple ][ dis‐
66 play. If the program exits, it will be launched again after 3
67 seconds. Default: xscreensaver-text(6x).
68
69 In text mode, apple2 emulates a vt100 terminal running on a
70 40x24 uppercase-only screen.
71
72 For example:
73
74 apple2 -text \
75 -program 'cat /usr/src/linux*/README | fold -sw40'
76 apple2 -text -program 'ping apple.com'
77 apple2 -text -program 'ps -e'
78 apple2 -text -program 'od -txCz -w7 /dev/urandom'
79 apple2 -text -program 'cat /dev/random'
80 apple2 -text -fast -program 'xemacs -nw -q -f life'
81 apple2 -text -fast \
82 -program 'xemacs -nw -q --eval "(hanoi 5)"'
83
84 You can also use apple2 as an extremely lo-fi replacement for
85 the xterm(1) and gnome-terminal(1) terminal emulators:
86
87 apple2 -text -fast -program tcsh
88
89
90 -pty In -text mode, launch the sub-program under a pty so that it
91 can address the screen directly. This is the default.
92
93 -pipe In -text mode, launch the sub-program at the end of a pipe: do
94 not let it address the screen directly.
95
96 -esc When the user types a key with the Alt or Meta keys held down,
97 send an ESC character first. This is the default.
98
99 -meta When Meta or Alt are held down, set the high bit on the charac‐
100 ter instead.
101
102 -del Swap Backspace and Delete. This is the default.
103
104 -bs Do not swap Backspace and Delete.
105
106 -fast Normally, characters are printed at the speed of an original
107 Apple][ computer; however, when using this program as a termi‐
108 nal emulator, the novelty of those 300 baud characters might
109 wear off. You can use the -fast option to speed things up a
110 bit.
111
112 -fps Display the current frame rate and CPU load.
113
115 By default, apple2 allocates a pseudo-tty for the -text-mode sub-
116 process to run under. This has the desirable side effect that the pro‐
117 gram will be able to use ioctl(2) to fetch information about terminal
118 parameters and window size, which many programs (such as top(1)) need
119 to run properly. apple2 will also set the environment variable TERM to
120 vt100 in the child process.
121
122 Any characters typed on the apple2 window will be passed along to the
123 sub-process. (Note that this only works when running in "window" mode,
124 not when running in -root mode under xscreensaver.)
125
127 DISPLAY to get the default host and display number.
128
129 XENVIRONMENT
130 to get the name of a resource file that overrides the global
131 resources stored in the RESOURCE_MANAGER property.
132
133 TERM to inform the sub-process of the type of terminal emulation.
134
136 Notable X resources supported include the following which correspond to
137 standard TV controls: analogTVTint, analogTVColor, analogTVBrightness,
138 and analogTVContrast which correspond to standard TV controls. They
139 range from 0 to 100,except for tint which is an angle between -180 and
140 +180.
141
143 Apple ][ and Applesoft are trademarks of Apple Computer.
144
145
147 xscreensaver(1), bsod(6x), xscreensaver-text(6x), fortune(1), phos‐
148 phor(6x), starwars(6x), ljlatest(6x), dadadodo(1), webcollage(6x),
149 driftnet(1) EtherPEG, EtherPeek, console_codes(4).
150
152 Copyright © 2002-2003 by Trevor Blackwell. Permission to use, copy,
153 modify, distribute, and sell this software and its documentation for
154 any purpose is hereby granted without fee, provided that the above
155 copyright notice appear in all copies and that both that copyright no‐
156 tice and this permission notice appear in supporting documentation. No
157 representations are made about the suitability of this software for any
158 purpose. It is provided "as is" without express or implied warranty.
159
161 Television and Apple ][ emulation by Trevor Blackwell <tlb@tlb.org>.
162 Slideshow and text mode by Jamie Zawinski <jwz@jwz.org>. Pty and vt100
163 emulation by Fredrik Tolf <fredrik@dolda2000.com>.
164
165
166
167X Version 11 6.02-4.fc35 (09-Nov-2021) apple2(6x)