blob: bf90b26f8b25075b3a21d0e07bd17ea0a41638fe [file] [log] [blame]
Steve Kondikae271bc2015-11-15 02:50:53 +01001.\"***************************************************************************
micky3879b9f5e72025-07-08 18:04:53 -04002.\" Copyright 2020 Thomas E. Dickey *
3.\" Copyright 1998-2006,2017 Free Software Foundation, Inc. *
Steve Kondikae271bc2015-11-15 02:50:53 +01004.\" *
5.\" Permission is hereby granted, free of charge, to any person obtaining a *
6.\" copy of this software and associated documentation files (the *
7.\" "Software"), to deal in the Software without restriction, including *
8.\" without limitation the rights to use, copy, modify, merge, publish, *
9.\" distribute, distribute with modifications, sublicense, and/or sell *
10.\" copies of the Software, and to permit persons to whom the Software is *
11.\" furnished to do so, subject to the following conditions: *
12.\" *
13.\" The above copyright notice and this permission notice shall be included *
14.\" in all copies or substantial portions of the Software. *
15.\" *
16.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23.\" *
24.\" Except as contained in this notice, the name(s) of the above copyright *
25.\" holders shall not be used in advertising or otherwise to promote the *
26.\" sale, use or other dealings in this Software without prior written *
27.\" authorization. *
28.\"***************************************************************************
29.\"
micky3879b9f5e72025-07-08 18:04:53 -040030.\" $Id: gdc.6,v 1.6 2020/02/02 23:34:34 tom Exp $
31.TH GDC 6 2020-02-02 ncurses-examples Games
Steve Kondikae271bc2015-11-15 02:50:53 +010032.SH NAME
33gdc \- grand digital clock (curses)
34.SH SYNOPSIS
micky3879b9f5e72025-07-08 18:04:53 -040035.B gdc \fP[\fIoptions\fP] [\fIn\fP]
Steve Kondikae271bc2015-11-15 02:50:53 +010036.SH DESCRIPTION
37.I Gdc
38runs a digital clock made of reverse-video blanks on a terminal screen.
39If the terminal supports color, the clock is drawn in red.
40You can make the clock stop, pause or resume by pressing a ``q'',
41``s'' or space, respectively.
42.SH OPTIONS
43.TP
micky3879b9f5e72025-07-08 18:04:53 -040044.B \-d
45use terminal's default colors for the background.
46.TP
47.B \-n
Steve Kondikae271bc2015-11-15 02:50:53 +010048redirects input to /dev/null, making it ignore the stop/pause commands.
49You can still stop it by pressing the interrupt key.
50.TP
micky3879b9f5e72025-07-08 18:04:53 -040051.B \-s
Steve Kondikae271bc2015-11-15 02:50:53 +010052makes digits scroll as they change.
53When running on a fast display, the program breaks up the scrolling into
54subsecond repaints, making the operation appear smooth.
micky3879b9f5e72025-07-08 18:04:53 -040055.TP
56.B \-t \fIhh:mm:ss\fP
57specify starting time (default is ``now'').
Steve Kondikae271bc2015-11-15 02:50:53 +010058.PP
59With an optional numeric argument
60.I num
61it stops after
62.I num
63seconds.
64Normally it runs "forever" (counting down from 2 billion seconds).
65.SH AUTHOR
66Amos Shapir, modified for curses by John Lupien.
micky3879b9f5e72025-07-08 18:04:53 -040067.br
Steve Kondikae271bc2015-11-15 02:50:53 +010068Improvements for ncurses by Thomas Dickey.