Colors in shells ================ Author: Momchil Ivanov Date : 2013.01.19 Introduction ------------ Producing a coloured output in a shell might be achieved in the following way: $ echo -e "\033[1;31m" $ echo -e "\e[1;31m" $ echo -e "\033[1;31m sample text\033[0m" where the starting sequence is "\033[" or "\e[" and the ending sequence is "m". Effects ------- 00 Default colour 01 Bold 04 Underlined 05 Blink: slow 07 Reversetd 08 Concealed Colours ------- 30 Black 31 Red 32 Green 33 Yellow 34 Blue 35 Magenta 36 Cyan 37 White Backgrounds ----------- 40 Black 41 Red 42 Green 43 Yellow 44 Blue 45 Magenta 46 Cyan 47 White Extra colours (not in the ANSI standard) ---------------------------------------- 90 Dark grey 91 Light red 92 Light green 93 Yellow 94 Light blue 95 Light purple 96 Turquoise 97 White 100 Dark grey background 101 Light red background 102 Light green background 103 Yellow background 104 Light blue background 105 Light purple background 106 Turquoise background Additional information ---------------------- For additional information visit: http://en.wikipedia.org/wiki/ANSI_escape_code http://www.bashguru.com/2010/01/shell-colors-colorizing-shell-scripts.html