<ansi.h>
ANSI terminal escape sequences.
Constants
| Name |
Value |
Description |
ANSI_RESET |
"\033[0m" |
Reset all attributes. |
ANSI_BOLD |
"\033[1m" |
Bold. |
ANSI_DIM |
"\033[2m" |
Dim. |
ANSI_BLACK |
"\033[30m" |
Black text. |
ANSI_RED |
"\033[31m" |
Red text. |
ANSI_GREEN |
"\033[32m" |
Green text. |
ANSI_YELLOW |
"\033[33m" |
Yellow text. |
ANSI_BLUE |
"\033[34m" |
Blue text. |
ANSI_MAGENTA |
"\033[35m" |
Magenta text. |
ANSI_CYAN |
"\033[36m" |
Cyan text. |
ANSI_WHITE |
"\033[37m" |
White text. |
ANSI_GRAY |
"\033[90m" |
Gray text. |
ANSI_BG_BLACK |
"\033[40m" |
Black background. |
ANSI_BG_RED |
"\033[41m" |
Red background. |
ANSI_BG_GREEN |
"\033[42m" |
Green background. |
ANSI_BG_YELLOW |
"\033[43m" |
Yellow background. |
ANSI_BG_BLUE |
"\033[44m" |
Blue background. |
ANSI_BG_MAGENTA |
"\033[45m" |
Magenta background. |
ANSI_BG_CYAN |
"\033[46m" |
Cyan background. |
ANSI_BG_WHITE |
"\033[47m" |
White background. |
ANSI_CLEAR |
"\033[2J\033[H" |
Clear the screen and move the cursor home. |