cvs commit: src/games/grdc grdc.6 grdc.c

cpressey 2004/03/25 15:55:13 PST
DragonFly src repository
Modified files:
games/grdc grdc.6 grdc.c
Log:
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.)
Revision Changes Path
1.3 +19 -8 src/games/grdc/grdc.6
1.4 +59 -26 src/games/grdc/grdc.c
http://www.dragonflybsd.org/cvsweb/src/games/grdc/grdc.6.diff?r1=1.2&r2=1.3&f=hhttp://www.dragonflybsd.org/cvsweb/src/games/grdc/grdc.c.diff?r1=1.3&r2=1.4&f=h