Can any one please help me understand this code snippet that I found in .profile file
echo -en "\e[32;44m $(hostname) \e[m";echo -e "\e[m"
|
Can any one please help me understand this code snippet that I found in .profile file
|
||||
|
|
|
This snippet is used to print out the hostname of the system with a blue background and a green font. To color your shell, you use special color escape sequences.
From the echo manpage:
IMHO your snippet could be simplified to
See the chapter 6.1 Colours of the BASH Prompt HOWTO for more details. |
|||
|
|
|
see http://en.wikipedia.org/wiki/Control_Sequence_Introducer for more more details |
|||
|
|