Darned clock watchers!
Fairlight
fairlite at fairlite.com
Thu Dec 11 19:44:44 PST 2008
With neither thought nor caution, Joe Chasan blurted:
> > However, you should be able to do this with inkey and a tight loop.
>
> thats pretty much what i thought i'd end up having to do if i couldn't
> figure this out a different way - but the inkey/loop/field-build works
> best when there is only one field on the screen (which _do_ i have in
> some cases) and also, more importantly, makes it very difficult to
> back-space, arrow back and forward, edit, etc.
It really makes a LOT more sense to write a small program like the old BSD
'sysinfo' that would just overlay the time in a small inverse box in the
bottom corner of the screen, in like the last 4 characters where fP never
displays anything. You have it run as a background task starting at login,
and it has -nothing- to do with fP at all, and thus is not subject to its
constraints.
The old sysinfo used to use the 25th line of displays (but was
configurable) and presented more than the time. But the principle is
the same in general. You just have it "sleep" for a tenth of a second
between updates. For that granularity, you'd need to use select() on most
platforms, as sleep() is only granular to seconds. SCO has a nap() that
uses microseconds, but it's not standard.
mark->
More information about the Filepro-list
mailing list