summaryrefslogtreecommitdiff
path: root/src/colors.py
blob: df22d30a4fcd97283ce4f059b762eae7d80bbebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
def esc(code):
    return f'\033[{code}m'

RESET           = esc(0)
BLACK           = esc(30)
RED             = esc(31)
GREEN           = esc(32)
YELLOW          = esc(33)
BLUE            = esc(34)
MAGENTA         = esc(35)
CYAN            = esc(36)
WHITE           = esc(37)
DEFAULT         = esc(39)
LIGHT_BLACK     = esc(90)
LIGHT_RED       = esc(91)
LIGHT_GREEN     = esc(92)
LIGHT_YELLOW    = esc(93)
LIGHT_BLUE      = esc(94)
LIGHT_MAGENTA   = esc(95)
LIGHT_CYAN      = esc(96)
LIGHT_WHITE     = esc(97)

BG_BLACK           = esc(40)
BG_RED             = esc(41)
BG_GREEN           = esc(42)
BG_YELLOW          = esc(43)
BG_BLUE            = esc(44)
BG_MAGENTA         = esc(45)
BG_CYAN            = esc(46)
BG_WHITE           = esc(47)
BG_DEFAULT         = esc(49)

CLEAR_LINE         = "\033[K"