[comp.unix.questions] Can I display current time on the top/bottom status line

tim@ncrcan.Toronto.NCR.COM (Tim Nelson) (09/30/89)

ola,

I am trying to find out if there is any way to have the time displayed
at the top or bottom of the monitor on the status line (or anywhere else
for that matter), all the time; that is, like a clock.

Are there any shell scripts, or anything, which will do this?

Any information will be appreciated.

        thanx & later,

=================
tim (nelson)     | uucp        ...!uunet!attcan!ncrcan!tim
ncr canada       | internet     tim@ncrcan.Toronto.NCR.COM
(416) 826-9000   | 6865 Century Ave, Mississauga, Ontario, Canada L5N 2E2
=================
* Have a good day, and a great forever.

spolsky-joel@CS.YALE.EDU (Joel Spolsky) (10/02/89)

In article <1621@ncrcan.Toronto.NCR.COM> Tim writes:
|I am trying to find out if there is any way to have the time displayed
|at the top or bottom of the monitor on the status line (or anywhere else
|for that matter), all the time; that is, like a clock.
|
|Are there any shell scripts, or anything, which will do this?
|
|tim (nelson)     | uucp        ...!uunet!attcan!ncrcan!tim
|ncr canada       | internet     tim@ncrcan.Toronto.NCR.COM
|(416) 826-9000   | 6865 Century Ave, Mississauga, Ontario, Canada L5N 2E2


I wrote a C program that does this for VT100 and TVI950 terminals,
which have status lines. You run the program on the unix host and it
keeps the status line updated. It gives you the date and time, and it
tells you when you get mail and who it is from.

It could probably be easily modified to handle other terminals with
programmable, independant status lines.

If you are interested in receiving a copy, send me email:

+----------------+----------------------------------------------------------+
|  Joel Spolsky  | bitnet: spolsky@yalecs.bitnet     uucp: ...!yale!spolsky |
|                | internet: spolsky@cs.yale.edu     voicenet: 203-436-1538 |
+----------------+----------------------------------------------------------+
                                                      #include <disclaimer.h>

terryl@tekcrl.LABS.TEK.COM (10/03/89)

     Um, err, if you're on a BSD machine, try sysline(1)....