grdc(6) (was Re: pcvt(4)-related)

Chris Pressey cpressey at catseye.mine.nu
Tue Mar 23 11:58:14 PST 2004


On Mon, 22 Mar 2004 20:18:18 -0800
Chris Pressey <cpressey at xxxxxxxxxxxxxxx> wrote:

> Yet more: grdc.diff, cleans up grdc(6).  One day, maybe slightly less,
> considering how critical a system component it is :)

OK, now that that's done, here's why I did it: to pave the way for some
improvements to grdc(6).

The clock is now displayed centered on the terminal.  grdc(6) will fail
to start if your terminal is too small (like smaller than 61x9 or so)

The scroll option, which nowadays goes by far too quickly to be
appreciated (or even seen) on syscons or xterm, now defaults to having a
120 millisecond duration.

The scroll delay can be adjusted with a new option, -d.

A bug was also fixed where the clock really does run forever now if no
optional seconds argument is given.  (It would have stopped after
about 32,768 seconds due to wraparound, before.)

Patch is at:

  http://catseye.webhop.net/DragonFlyBSD/patch/grdc.diff

Technically this should wait three days, but considering it's in games/,
I'll be happy to speed it up to two days if everyone's OK with that.

-Chris





More information about the Submit mailing list