Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!mvadh From: mvadh@cbnews.att.com (andrew.d.hay) Newsgroups: comp.unix.programmer Subject: Re: Timer (sysline) Message-ID: <1991Mar14.115254.7998@cbnews.att.com> Date: 14 Mar 91 11:52:54 GMT References: <1991Mar11.173124.3910@doe.utoronto.ca> Distribution: na Organization: AT&T Bell Laboratories Lines: 25 In article <1991Mar11.173124.3910@doe.utoronto.ca> peter@doe.utoronto.ca (Peter Mielke) writes: " "In <1991Mar08.132532.24494@convex.com>, Tom Christiansen writes: "> From the keyboard of wongm@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@att.com +------------------------------------------------------+