apple2(6x)
β¨ NAME β¨
apple2 β Apple ][ display emulator. And yes bestie, this is apple2(6x) from the XScreenSaver manual β we're about to make 1979 absolutely iconic π
πΈ SYNOPSIS πΈ
apple2 [--display host:display.screen] [--foreground color]
[--background color] [--window] [--root] [--window-id number][--mono]
[--install] [--visual visual] [--program command to run] [--basic]
[--slideshow] [--text] [--meta] [--esc] [--bs] [--del] [--fast] [--fps]
π DESCRIPTION π
Okay so the apple2 program simulates an original Apple ][ Plus computer in all its 1979 glory. It also reproduces the appearance of display on a color television set of the period. Obsessed, honestly.
There are 3 modes: basic, slideshow, and text. Normally it chooses a mode randomly, but you can override with the --basic, --slideshow, or --text options. No cap.
- In
basicmode, a simulated user types in a Basic program and runs it. Slay. - In
slideshowmode, it chooses a number of images from the image source you configured into XScreenSaver and displays them within the limitations of the Apple ][ display hardware. With only 6 available colors, you can only make out the general shape of the pictures. It's giving blurry little legends. - In
textmode, it displays the output of a command or the contents of a file or URL (via the defaultxscreensaver-text(6x)program, which can be overridden with--program).
In text mode, it is also a fully functional (if anachronistic) vt100 terminal emulator. Main character energy, tbh.
π OPTIONS π
apple2 accepts the following options:
--windowβ draw on a newly-created window. This is the default.--rootβ draw on the root window.--window-id numberβ draw on the specified window.--monoβ if on a color display, pretend we're on a monochrome display.--installβ install a private colormap for the window.--visual visualβ specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.--basicβ choosebasicmode.--slideshowβ chooseslideshowmode.--textβ choosetextmode.--program sh-commandβ intextmode, the command to run to generate the text to display. This option may be any string acceptable to/bin/sh. The program will be run at the end of a pipe, and any characters that it prints to stdout will be printed on the Apple ][ display. If the program exits, it will be launched again after 3 seconds. Default:xscreensaver-text(6x).
In text mode, apple2 emulates a vt100 terminal running on a 40x24 uppercase-only screen.
For example:
apple2 --text --program 'ping apple.com'
apple2 --text --program 'ps -e'
apple2 --text --program 'od -txCz -w7 /dev/urandom'
apple2 --text --program 'cat /dev/random'
apple2 --text --fast --program 'emacs -nw -q -f life'
apple2 --text --fast \
--program 'emacs -nw -q --eval "(hanoi 5)"'
You can also use apple2 as an extremely lo-fi replacement for the xterm(1) and gnome-terminal(1) terminal emulators:
apple2 -text -fast -program tcsh
--ptyβ in--textmode, launch the sub-program under a pty so that it can address the screen directly. This is the default.--pipeβ in--textmode, launch the sub-program at the end of a pipe: do not let it address the screen directly.--escβ when the user types a key with the Alt or Meta keys held down, send an ESC character first. This is the default.--metaβ when Meta or Alt are held down, set the high bit on the character instead.--delβ swap Backspace and Delete. This is the default.--bsβ do not swap Backspace and Delete.--fastβ normally, characters are printed at the speed of an original Apple][ computer; however, when using this program as a terminal emulator, the novelty of those 300 baud characters might wear off. You can use the--fastoption to speed things up a bit.--fpsβ display the current frame rate and CPU load.
π¦ TERMINAL EMULATION π¦
By default, apple2 allocates a pseudo-tty for the --text-mode sub-process to run under. This has the desirable side effect that the program will be able to use ioctl(2) to fetch information about terminal parameters and window size, which many programs (such as top(1)) need to run properly. apple2 will also set the environment variable TERM to vt100 in the child process.
Any characters typed on the apple2 window will be passed along to the sub-process. (Note that this only works when running in "window" mode, not when running in --root mode under xscreensaver.)
π ENVIRONMENT π
DISPLAYβ to get the default host and display number.XENVIRONMENTβ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.XSCREENSAVER_WINDOWβ the window ID to use with--root.TERMβ to inform the sub-process of the type of terminal emulation.
π X RESOURCES π
Notable X resources supported include analogTVTint, analogTVColor, analogTVBrightness, and analogTVContrast β these correspond to standard TV controls. They range from 0 to 100, except for tint which is an angle between -180 and +180. Cute little TV knobs, basically.
π TRADEMARKS π
Apple ][ and Applesoft are trademarks of Apple Computer.
π₯ SEE ALSO π₯
xscreensaver(1), bsod(6x), xscreensaver-text(6x), fortune(1), phosphor(6x), starwars(6x), ljlatest(6x), dadadodo(1), webcollage(6x), driftnet(1) EtherPEG, EtherPeek, console_codes(4).
π COPYRIGHT π
Copyright Β© 2002-2003 by Trevor Blackwell. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
π§ AUTHOR π§
Television and Apple ][ emulation by Trevor Blackwell <tlb@tlb.org>. Slideshow and text mode by Jamie Zawinski <jwz@jwz.org>. Pty and vt100 emulation by Fredrik Tolf <fredrik@dolda2000.com>.
X Version 11, 6.09 (07-Jun-2024), apple2(6x) β mwah, bye bestie π
π
π¦ where this page comes from
- debian trixie: xscreensaver-data-extra 6.09+dfsg1-1 Β· Other_1
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms