- view: text
- select for diffs
Thu Mar 25 23:55:13 2004 UTC
(10 years, 10 months ago) by cpressey
CVS tags: HEAD
Four new features and a bugfix.
- Center the clock on the user's terminal.
- Check that the terminal is sufficiently large to fully display the
clock (about 61x9.) If not, exit immediately with an error.
- Introduce a short delay in the scrolling when -s is given, so that
it can be better appreciated on syscons(4) and local xterm(1). The
default delay is 120 milliseconds.
- Add a new option, -d, to allow changing the scroll delay to any
duration from 0 to 5000 milliseconds. The -d option implies -s.
- Make it so that, when the optional argument is omitted, the clock
really does run forever. (Before this, it would have stopped after
about 65536 seconds due to wraparound.)
1: .\" $FreeBSD: src/games/grdc/grdc.6,v 22.214.171.124 2001/10/02 11:51:49 ru Exp $
2: .\" $DragonFly: src/games/grdc/grdc.6,v 1.3 2004/03/25 23:55:13 cpressey Exp $
3: .Dd September 25, 2001
4: .Dt GRDC 6
5: .Sh NAME
6: .Nm grdc
7: .Nd grand digital clock (curses)
8: .Sh SYNOPSIS
10: .Op Fl s
11: .Op Fl d Ar msecs
12: .Op Ar n
13: .Sh DESCRIPTION
15: displays a digital clock made of reverse-video blanks
16: centered on a curses-compatible terminal.
18: By default, the clock runs indefinately.
19: When the optional numeric argument
20: .Ar n
21: is given, it stops after
22: .Ar n
25: The optional
26: .Fl s
27: flag makes digits scroll as they change.
28: Over slow links, the scrolling option may have trouble keeping up.
30: The default time taken to scroll the digits into view is 120
31: milliseconds. The
32: .Fl d
33: option, which implies
34: .Fl s ,
35: may be given to explicitly set the scroll duration.
36: The maximum scroll duration is effectively 5 seconds.
37: .Sh AUTHORS
38: .An -nosplit
39: .An Amos Shapir ,
40: modified for curses by
41: .An John Lupien .