14 .TH XScreenSaver 1 "5-May-2004" "X Version 11"
16 apple2 - Apple ][ display emulator
19 [\-display \fIhost:display.screen\fP] [\-foreground \fIcolor\fP]
20 [\-background \fIcolor\fP] [\-window] [\-root] [\-mono] [\-install]
21 [\-visual \fIvisual\fP]
22 [\-program \fIcommand to run\fP]
23 [\-basic] [\-slideshow] [\-text]
24 [\-meta] [\-esc] [\-bs] [\-del] [\-fast]
28 program simulates an original Apple ][ Plus computer in all its 1979
29 glory. It also reproduces the appearance of display on a color
30 television set of the period.
32 There are 3 modes: basic, slideshow, and text. Normally it chooses a
33 mode randomly, but you can override with the \fI\-basic\fP,
34 \fI\-slideshow\fP, or \fI\-text\fP options.
36 In basic mode a simulated user types in a Basic program and runs it.
38 In slideshow mode it chooses a number of images from the image source
39 you configured into XScreenSaver and displays them within the
40 limitations of the Apple ][ display hardware. With only 6 available
41 colors, you can only make out the general shape of the pictures.
43 In text mode it displays the output of a command (by default your
44 system's fortune program, but can be overridden with \fI\-program\fP).
46 In text mode, it is also a fully functional (if anachronistic)
47 vt100 terminal emulator.
50 accepts the following options:
53 Draw on a newly-created window. This is the default.
56 Draw on the root window.
59 If on a color display, pretend we're on a monochrome display.
62 Install a private colormap for the window.
64 .B \-visual \fIvisual\fP
65 Specify which visual to use. Legal values are the name of a visual class,
66 or the id number (decimal or hex) of a specific visual.
77 .B \-program \fIsh-command\fP
78 In text mode, the command to run to generate the text to display. This
79 option may be any string acceptable to /bin/sh. The program will be
80 run at the end of a pipe, and any characters that it prints to
81 \fIstdout\fP will be printed on the Apple ][ display. If the program
82 exits, it will be launched again after 3 seconds. Default:
85 In text mode, \fIapple2\fP emulates a vt100 terminal running on a 40x24
86 uppercase-only screen.
91 -program 'cat /usr/src/linux*/README | fold -sw40'
92 apple2 -text -program 'ping apple.com'
93 apple2 -text -program 'ps -e'
94 apple2 -text -program 'od -txCz -w7 /dev/urandom'
95 apple2 -text -program 'cat /dev/random'
96 apple2 -text -fast -program 'xemacs -nw -q -f life'
98 -program 'xemacs -nw -q --eval "(hanoi 5)"'
100 You can also use \fIapple2\fP as an extremely lo-fi replacement for the
103 .BR gnome-terminal (1)
106 apple2 -text -fast -program tcsh
110 In \fI\-text\fP mode, launch the sub-program under a pty so that it
111 can address the screen directly. This is the default.
114 In \fI\-text\fP mode, launch the sub-program at the end of a pipe:
115 do not let it address the screen directly.
118 When the user types a key with the Alt or Meta keys held down, send an
119 ESC character first. This is the default.
122 When Meta or Alt are held down, set the high bit on the character instead.
125 Swap Backspace and Delete. This is the default.
128 Do not swap Backspace and Delete.
131 Normally, characters are printed at the speed of an original Apple][
132 computer; however, when using this program as a terminal emulator,
133 the novelty of those 300 baud characters might wear off. You can use
134 the \fI\-fast\fP option to speed things up a bit.
135 .SH TERMINAL EMULATION
136 By default, \fIapple2\fP allocates a pseudo-tty for the \fI\-text\fP-mode
137 sub-process to run under. This has the desirable side effect that the
138 program will be able to use
140 to fetch information about terminal parameters and window size, which
141 many programs (such as
143 need to run properly. \fIapple2\fP will also set the environment
144 variable \fITERM\fP to \fIvt100\fP in the child process.
146 Any characters typed on the apple2 window will be passed along to
147 the sub-process. (Note that this only works when running in "window"
148 mode, not when running in \fI\-root\fP mode under xscreensaver.)
153 to get the default host and display number.
156 to get the name of a resource file that overrides the global resources
157 stored in the RESOURCE_MANAGER property.
160 to inform the sub-process of the type of terminal emulation.
162 Notable X resources supported include the following which correspond
163 to standard TV controls:
166 .BR analogTVBrightness ,
169 which correspond to standard TV controls. They range from 0 to
170 100,except for tint which is an angle between -180 and +180.
172 Apple ][ and Applesoft are trademarks of Apple Computer.
175 .BR xscreensaver (1),
186 .BR console_codes (4).
188 Copyright \(co 2002-2003 by Trevor Blackwell. Permission to use, copy,
189 modify, distribute, and sell this software and its documentation for
190 any purpose is hereby granted without fee, provided that the above
191 copyright notice appear in all copies and that both that copyright
192 notice and this permission notice appear in supporting documentation.
193 No representations are made about the suitability of this software for
194 any purpose. It is provided "as is" without express or implied
197 Television and Apple ][ emulation by Trevor Blackwell <tlb@tlb.org>.
198 Slideshow and text mode by Jamie Zawinski <jwz@jwz.org>.
199 Pty and vt100 emulation by Fredrik Tolf <fredrik@dolda2000.com>.