Node:ANSI attribute codes, Up:Colors

ANSI attribute codes

An ANSI escape sequence has the format ESC[X;Ym, where ESC is the escape character (octal 033). X and, optionally, Y, is one of the following escape codes:

For example, the sequence ESC[1;32myafc rulesESC[0m will be the string yafc rules in bright green, after which the attribute is restored to normal.