Echo Colors

Darryl Cousins darryl at ipage.pl
Wed Feb 5 01:23:16 PST 2003


Hi,


Black       0;30     Dark Gray     1;30
Blue        0;34     Light Blue    1;34
Green       0;32     Light Green   1;32
Cyan        0;36     Light Cyan    1;36
Red         0;31     Light Red     1;31
Purple      0;35     Light Purple  1;35
Brown       0;33     Yellow        1;33
Light Gray  0;37     White         1;37

Copied from:
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x343.html

Regards, Darryl

> Alas! Eric Miller spake thus:
> > echo <b>blue <r>red <c>cyan
> 
> You have to use ANSII escape sequences, and I believe that you have to
> use 'echo -e' instead of just echo (could be wrong, though).
> 
> I don't remember the escape sequences off the top of my head, but google
> will get you some good URLs for it.
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-chat' in the subject header of the message



More information about the lfs-chat mailing list