phosphor(6)

πŸ“¦
version 6.15 Β· 2 versions
, in alpine 3.24, arch rolling, nixpkgs unstable

πŸ’– phosphor(6) β€” the XScreenSaver manual, bestie edition ✨

okay so picture this: your screen turns into a big chunky old-school terminal, the pixels glow and sloooowly fade out like the phosphor is gonna outlive us all, and also β€” plot twist β€” it's a whole actual working vt100 terminal emulator. that's phosphor. she's iconic, she's retro, she's from the XScreenSaver manual, and she's about to be your new hyperfixation πŸŽ€


✨ NAME ✨

phosphor β€” simulates an old terminal with long-sustain phosphor πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

phosphor [--display host:display.screen] [--window] [--root]
[--window-id number][--install] [--visual visual] [--font font] [--scale
int] [--ticks int] [--delay usecs] [--no-cache] [--program command]
[--meta] [--esc] [--bs] [--del] [--fps]

🌸 DESCRIPTION 🌸

so the phosphor program draws text on your screen in a very large pixelated font β€” like genuinely giving old low-resolution dumb tty realness. the pixels flare and fade out, as if the phosphor had extremely long sustain (hence the name, iykyk). and bestie? it's also a fully functional vt100 terminal emulator. not me being a screensaver AND a terminal at the same time, main character energy fr fr πŸ‘‘


πŸ’… OPTIONS πŸ’…

phosphor accepts the following options:

  • --window β€” draw on a newly-created window. this is the default, she lives here 🫢
  • --root β€” draw on the root window instead.
  • --window-id number β€” draw on the window you specify. be specific, bestie.
  • --install β€” install a private colormap for the window.
  • --visual visual β€” pick which visual to use. legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
  • --font font-name β€” the X font to use. phosphor can take any font and scale it up to pixelate it. the default is fixed.
  • --scale int β€” how much to scale the font up; in other words, the size in real pixels of the simulated pixels. default 6.
  • --ticks int β€” the number of colors to use when fading to black. default 20.
  • --delay usecs β€” the speed of the terminal: how long to wait between drawing each character. default 50000, which is about 1/20th second ⏱️
  • --cache | --no-cache β€” speed up rendering at the expense of memory and startup time. default is yes.
  • --pty β€” launch the sub-program under a PTY, so that it can address the screen directly. this is the default.
  • --pipe β€” launch the sub-program at the end of a pipe: do not let it address the screen directly.
  • --program sh-command β€” 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 pty or pipe, and any characters that it prints to stdout will be printed on phosphor's window. the characters will be printed artificially slowly, as per the --delay option above. if the program exits, it will be launched again after 5 seconds. πŸ”

for example:

  phosphor --program 'ping 8.8.8.8'
  phosphor --program 'ps -e'
  phosphor --program 'od -txC -w6 /dev/random'
  phosphor --program 'cat /dev/random'
  phosphor --scale 2 --program 'top'
  phosphor --scale 4 --program 'mtr www.kernel.org'
  phosphor --scale 4 --program 'emacs -nw -q -f life'
  phosphor --scale 4 --program 'emacs -nw -q --eval "(hanoi 5)"'

if you have the festival(1) text-to-speech system installed, you can have it read the screen as phosphor prints it:

  phosphor --program \
      'xscreensaver-text | tee /dev/stderr | festival --tts'

you can also use phosphor as a lo-fi replacement for the xterm(1) and gnome-terminal(1) terminal emulators:

   phosphor -delay 0 -program $SHELL
  • --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.
  • --fps β€” display the current frame rate and CPU load. numbers go brrr πŸ“Š

🧚 TERMINAL EMULATION 🧚

by default, phosphor allocates a pseudo-tty for the 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. phosphor will also set the environment variable TERM to vt100 in the child process. slay 🌈

any characters typed on the phosphor window will be passed along to the sub-process.

okay important caveat bestie: this only works when running in "window" mode, not when running in --root mode under xscreensaver. no cap, that's just how it is 😭

🌟 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 the RESOURCE_MANAGER property.
  • XSCREENSAVER_WINDOW β€” the window ID to use with --root.
  • TERM β€” to inform the sub-process of the type of terminal emulation.

πŸ‘‘ SEE ALSO πŸ‘‘

xscreensaver(1), xscreensaver-text(6), fortune(1), apple2(6), starwars(6), fontglide(6), ljlatest(6), dadadodo(1), webcollage(6), driftnet(1), EtherPEG, EtherPeek, console_codes(4).

like, the whole friend group showed up πŸ’œ


Copyright Β© 1999 by Jamie Zawinski. 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.

(translation: go off, use it, just keep the notice, and don't come for her if it breaks πŸ™ˆ)


⭐ AUTHOR ⭐

Jamie Zawinski <jwz@jwz.org>, 27-Apr-99. Pty and vt100 emulation by Fredrik Tolf <fredrik@dolda2000.com>. absolute legends, both of them 🫢


πŸ’€ one last vibe check, bestie: everything above is exactly what the page says, so type responsibly.

X Version 11 Β· 6.15 (30-Mar-2026) β€” that's the version and date, mwah, signing off πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from