This shell script shows how to display a digital clock in linux.
echo "Digital Clock for Linux"
echo "To stop this clock use command kill pid, see above for pid"
echo "Press a key to continue. . ."
echo -e -n "\033[7s" #save current screen postion & attributes
# Show the clock
tput cup 0 69 # row 0 and column 69 is used to show clock
echo -n $ti # put clock on screen
echo -e -n "\033[8u" #restore current screen postion & attributs
#Delay fro 1 second
|1. ||View Comment|
Thanks for the digital shell clock: very cool, and exactly what I was looking for.
I want to add it to my .bashrc: do you have any idea how this could be modified to allow scrolling of the shell? Currently the shell returns to current screen position on scroll.
View Tutorial By: Lol loller at 2012-04-11 15:40:45