I found this in rc.sysinit:
[ "$BOOTUP" = "color" ] && echo -en $"\\033[0;31m" echo -en "Red Hat" [ "$BOOTUP" = "color" ] && echo -en $"\\033[0;39m" PRODUCT=`sed "s/Red Hat \(.*\) release.*/\1/" /etc/redhat-release` echo " $PRODUCT"
Now I'm just trying to figure out what the color codes are.
:-)
Posted by rbowen at March 29, 2004 05:51 AM
| TrackBack
Those are the ansi colors (iso 6429). Same as the values used in /etc/DIR_COLORS. If you look at man 5 DIR_COLORS it will give you two tables. You have 0;31 and 0;39, which translate to
31=red foreground
39=some background, but I don't remember which one... guessing white, but might be a gray (or I'm totally wrong and its like puce or something).
DIR_COLORS, as I am sure you are aware, are the colors assigned when you do an ls from the command line.
--Moose
Posted by: Moose on March 29, 2004 08:12 AMI posted this a while back on the lplug mailing list, but in case you missed it. It's an easy to understand article on how to use console color with linux...
http://www-106.ibm.com/developerworks/linux/library/l-tip-prompt/
Aaron
Posted by: Aaron on March 31, 2004 10:56 AM