View Single Post
  #4   (View Single Post)  
Old 21st February 2012
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by daemonfowl View Post
Thanks for this nice gift !! .. a peaceful light green which reminds of the Netbsd.macppc fg color ..
The other color, foreground, background and blink escape code sequences are found variously on google, but here's one link to digest.

http://wiki.bash-hackers.org/scripting/terminalcodes

You may also use tput(1). For example,
Code:
export PS1="\[$(tput setaf 3)\]\u@\h:\w \$ \[$(tput sgr0)\]"
is functionally the same as my script fragment.

tput(1) may be a little easier to use if you're combining FG & BG and other visual attribute.

Knock yourself out!

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote