ANSI escape sequences for formatting terminal output
Constants | ||
---|---|---|
public
|
BLACK = "\e[30m"
|
# |
public
|
RED = "\e[31m"
|
# |
public
|
GREEN = "\e[32m"
|
# |
public
|
YELLOW = "\e[33m"
|
# |
public
|
BLUE = "\e[34m"
|
# |
public
|
MAGENTA = "\e[35m"
|
# |
public
|
CYAN = "\e[36m"
|
# |
public
|
WHITE = "\e[37m"
|
# |
public
|
DEFAULT = "\e[39m"
|
# |
public
|
BLACK_BG = "\e[40m"
|
# |
public
|
RED_BG = "\e[41m"
|
# |
public
|
GREEN_BG = "\e[42m"
|
# |
public
|
YELLOW_BG = "\e[43m"
|
# |
public
|
BLUE_BG = "\e[44m"
|
# |
public
|
MAGENTA_BG = "\e[45m"
|
# |
public
|
CYAN_BG = "\e[46m"
|
# |
public
|
WHITE_BG = "\e[47m"
|
# |
public
|
DEFAULT_BG = "\e[49m"
|
# |
public
|
BOLD = "\e[1m"
|
# |
public
|
DIM = "\e[2m"
|
# |
public
|
UNDERLINE = "\e[4m"
|
# |
public
|
NO_UNDERLINE = "\e[24m"
|
# |
public
|
UNBOLD_UNDIM = "\e[22m"
|
# |
public
|
UNBOLD_DIM = "\e[22;2m"
|
# |
public
|
UNDIM_BOLD = "\e[22;1m"
|
# |
public
|
RESET = "\e[m"
|
# |
public
|
CLEAR_LINE = "\e[K"
|
# |
public
|
WRAP_OFF = "\e[?7l"
|
# |
public
|
WRAP_ON = "\e[?7h"
|
# |