This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

CLI Magic: Use ANSI escape sequences to display a clock in your terminal

Posted by: Anonymous [ip: 58.110.208.227] on January 22, 2008 09:49 PM
Assuming this is a tty ( tty1-6 for instance)

sudo -b vcstime

(or just `vcstime &` as root )

displays a clock in the top right corner of your tty

The script is interesting, but someone already thought of this, as above ... it's part of the console-tools package in Ubuntu, for example.
Probably the same package in Debian.

#

Return to CLI Magic: Use ANSI escape sequences to display a clock in your terminal