"When I'm in a Linux terminal, I often find myself typing date
just to see the time. To make life a bit easier, I wrote a script
to always display a clock in the top right corner of the
"The script saves the current cursor position with an ANSI
escape sequence instruction. Then, using the tput command, the
cursor is sent to row 0 (the top of the screen) and the last column
minus 19 characters (19 is the length of HH:MM:SS
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.