Your company here — click to reach over 10,000 unique daily visitors

pong - Man Page

Pong Home Video Game Emulator


pong [--display host:display.screen] [--foreground color] [--background color] [--window] [--root] [--window-id number][--mono] [--install] [--visual visual] [--clock float] [--noise] [--fps]


The pong program simulates an ancient Pong home video game, as well as various artifacts from displaying it on a color TV set.


pong accepts the following options:


Draw on a newly-created window.  This is the default.


Draw on the root window.

--window-id number

Draw on the specified window.


If on a color display, pretend we're on a monochrome display.


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.


The score of the game will be the current time.

--noise float

How noisy the video signal should be (between 0.0 and 4.0 or so).


Display the current frame rate and CPU load.

(-p1 | --p2) mode

Set a player to either ai, mouse, tablet, kbleft (for W and S), or kbright (or just kb, for arrow keys).



to get the default host and display number.


to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.


The window ID to use with --root.

X Resources

Notable X resources supported include the following which correspond to standard TV controls: analogTVTint, analogTVColor, analogTVBrightness, and analogTVContrast. They range from 0 to 100, except for tint which is an angle between -180 and +180.


Pong may be a trademark.

See Also

X(1), xscreensaver(1), xanalogtv(6x), apple2(6x)


Original Pong program by Jeremy English <jenglish@myself.com>. Scoring and television emulation by Trevor Blackwell <tlb@tlb.org>.


6.09-1.fc41 (11-Jun-2024) X Version 11 XScreenSaver manual