Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
#
Return to CLI Magic: Use ANSI escape sequences to display a clock in your terminal
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
CLI Magic: Use ANSI escape sequences to display a clock in your terminal
Posted by: Anonymous [ip: 123.200.203.202] on January 23, 2008 08:32 AMPS1='\[\033[0;32m\]\u@\h\[\033[0m\] \[\033[0;33m\]\w\[\033[0m\]\n\[\033[1;33m\]\@\[\033[0m\]: '
It makes your prompt look like this...
user@host /current/path
07:20 PM: _
In three different colours too.
[[That's not what it looks like - I don't know why this post has no linebreaks.]]
#