table of contents
GDC(6) | Games | GDC(6) |
NAME¶
gdc - grand digital clock using curses
SYNOPSIS¶
gdc [-dns] [-t hh:mm:ss] [count]
DESCRIPTION¶
gdc uses curses to display a clock on the terminal. It constructs the digits from reverse-video blank characters. If the terminal type supports color, the digits are drawn in red. Make the clock stop, pause, or resume by typing “q”, “s”, or space, respectively.
Given a numeric operand, the clock stops after count seconds. Normally, gdc runs “forever” (at least 2 billion seconds).
OPTIONS¶
- -d
- uses the terminal's default background color.
- -n
- reads input from /dev/null, making gdc ignore the stop and pause commands. You can still stop it with a terminal interrupt.
- -s
- scrolls the digits up as they change. When running on a fast display, the program breaks up the scrolling into sub-second redraws, making the operation appear smooth.
- -t hh:mm:ss
- uses the specified time instead of the current time.
AUTHORS¶
Amos Shapir, John Lupien (modifications for curses), Thomas Dickey (improvements for ncurses)
2024-06-15 | ncurses-examples |