| Function |
ESC Sequence |
Description |
| Change Character Mode |
ESC[attrm |
Change the character mode with
attribute attr. The attributes are numbers listed below. |
| Change Character Mode |
ESC[attr;...;attrm |
Change the character mode with
attributes attr;...;attr. The
attributes are numbers listed below. |
| All Off |
0 |
All attributes turned off.
(Except for foreground and background color). |
| High Intensity |
1 |
Bold. |
| Low Intensity |
2 |
Normal. |
| Italic |
3 |
Work only on some systems. |
| Underline |
4 |
Underline font. |
| Blink |
5 |
Blinking font. |
| Rapid Blink |
6 |
Works only on some systems. |
| Reverse Video |
7 |
Swapping the foreground color
and the background color. |
| Invisible |
8 |
Do not display characters. |
| Foreground Color |
30 |
Black. |
| Foreground Color |
31 |
Red. |
| Foreground Color |
32 |
Green. |
| Foreground Color |
33 |
Yellow. |
| Foreground Color |
34 |
Blue. |
| Foreground Color |
35 |
Magenta. |
| Foreground Color |
36 |
Cyan. |
| Foreground Color |
37 |
White. |
| Background Color |
40 |
Black. |
| Background Color |
41 |
Red. |
| Background Color |
42 |
Green. |
| Background Color |
43 |
Yellow. |
| Background Color |
44 |
Blue. |
| Background Color |
45 |
Magenta. |
| Background Color |
46 |
Cyan. |
| Background Color |
47 |
White. |