Timer (sysline)

andrew.d.hay mvadh at cbnews.att.com
Thu Mar 14 21:52:54 AEST 1991


In article <1991Mar11.173124.3910 at doe.utoronto.ca> peter at doe.utoronto.ca (Peter Mielke) writes:
"
"In <1991Mar08.132532.24494 at convex.com>, Tom Christiansen writes:
"> From the keyboard of wongm at latcs1.oz.au (Mun C Wong):
"> :Does anybody know how to write a proper background timer program that
"> :displays the current time on the upper-right corner of screen like
"> :exists in DOS ? 
"> 
"> How about lower corner?  Use sysline.
"
"Why restrict him to the lower corner, one can also place it in the
"upper corner as well (just change the terminal description entry).

why cut the screen down when you already have a ststus line?

my first real (!"hello world") program was a clock; it used curses to
go to the status line, read the current time, printed it, then slept
for a settable interval.  after tuning it, i got it down to *1*
cpu-second per 8-hour day, updating every 15 seconds!

-- 
Andrew Hay		+------------------------------------------------------+
Ragged Individualist	| 			JAAAAAAANE!		       |
AT&T-BL Ward Hill MA	|	    HOW DO YOU STOP THIS CRAZY THING?	       |
a.d.hay at att.com		+------------------------------------------------------+



More information about the Comp.unix.programmer mailing list