-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors.py
57 lines (45 loc) · 1.42 KB
/
colors.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class color:
### Regular Colors
reset = "\x1b[0m" # All attributes off(color at startup)
bold = "\x1b[1m" # Bold on(enable foreground intensity)
_bold = "\x1b[21m" # Bold off(disable foreground intensity)
underline = "\x1b[4m" # Underline on
_underline = "\x1b[24m" # Underline off
blink = "\x1b[5m" # blink on(enable background intensity)
_blink = "\x1b[25m" # blink off(disable background intensity)
### foreground colors ###
black = "\x1b[30m"
red = "\x1b[31m"
green = "\x1b[32m"
yellow = "\x1b[33m"
blue = "\x1b[34m"
magenta = "\x1b[35m"
cyan = "\x1b[36m"
white = "\x1b[37m"
resetCo = "\x1b[39m " # Default(foreground color at startup)
light_gray = "\x1b[90m"
light_red = "\x1b[91m"
light_green = "\x1b[92m"
light_yellow = "\x1b[93m"
light_blue = "\x1b[94m"
light_megenta = "\x1b[95m"
light_cyan = "\x1b[96m"
light_white = "\x1b[97m"
### backgrounds colors ###
black_Bg = "\x1b[40m"
red_Bg = "\x1b[41m"
green_Bg = "\x1b[42m"
yellow_Bg = "\x1b[43m"
blue_Bg = "\x1b[44m"
magenta_Bg = "\x1b[45m"
cyan_Bg = "\x1b[46m"
white_Bg = "\x1b[47m"
resetBg = "\x1b[49m " # Default(foreground color at startup)
light_gray_Bg = "\x1b[100m"
light_red_Bg = "\x1b[101m"
light_green_Bg = "\x1b[102m"
light_yellow_Bg = "\x1b[103m"
light_blue_Bg = "\x1b[104m"
light_megenta_Bg = "\x1b[105m"
light_cyan_Bg = "\x1b[106m"
light_white_Bg = "\x1b[107m"