"If you've just begun programming on the Linux console, you
may find yourself less than enthused about the available color
choices (or lack thereof). ... The answer is surprisingly simple:
all you need are some console escape sequences."
"Try typing the following at your command prompt:
echo -e "\033[35;1m Shocking \033[0m"
What you should have is the word "Shocking" appearing in bright
purple. (Sorry, electric pink is not an option)."
"This is made possible by \033 , the standard console "escape"
code, which is equivalent to ^[ , or 0x1B in hex. When this
character is received, the Linux console treats the subsequent
characters as a series of commands. These commands can do any
number of neat tricks, including changing text colors."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.