Colors are produced bei simply echoing the following code before the colorized text. Works also in Console-Programs (Ansi C, Java, …)
All colors build with the same sheme:
\033[X;Ym
While \033 indicates the Ansi-Code for „Color“, X = {0, 1, 4, 5} and Y = {30, …, 37, 40, … , 47} could be taking from following table:
To restore the original terminal color use \033[00m