ESC Control Character

console_codes(4) — Linux manual page

Command Display
echo -e "\e[1mbold\e[0m."
bold.
echo -e "\e[3mitalic\e[0m."
italic.
echo -e "\e[4munderscore\e[0m."
underscore.
echo -e "\e[7mnegative image\e[0m."
negative image.
echo -e "\e[9mstrikethrough\e[0m."
strikethrough.
echo -e "\e[30mblack\e[0m."
black display.
echo -e "\e[31mred display\e[0m."
red display.
echo -e "\e[32mgreen display\e[0m."
green display.
echo -e "\e[33myellow display\e[0m."
yellow display.
echo -e "\e[34mblue display\e[0m."
blue display.
echo -e "\e[35mmagenta display\e[0m."
magenta display.
echo -e "\e[36mcyan display\e[0m."
cyan display.
echo -e "\e[37mwhite display\e[0m."
white display.
echo -e "\e[40mblack background\e[0m."
black background.
echo -e "\e[41mred background\e[0m."
red background.
echo -e "\e[42mgreen background\e[0m."
green background.
echo -e "\e[43myellow background\e[0m."
yellow background.
echo -e "\e[44mblue background\e[0m."
blue background.
echo -e "\e[45mmagenta background\e[0m."
magenta background.
echo -e "\e[46mcyan background\e[0m."
cyan background.
echo -e "\e[47mwhite background\e[0m."
white background.
echo -e "\e[1;3;31;44mbold italic red display blue background\e[0m."
bold italic red display blue background.
echo -e "\e[1mbold \e[3mitalic \e[31mred display \e[44mblue background\e[0m."
bold italic red display blue background.

The escape control character U+001B is input variously as ^[, \E, \e, \x1B, \033, \U27 in the shell and as  as an HTML character reference.

The escape control character displays as: .

The escape control character is represented by the Unicode control picture ␛, U+241B.