1 module tools.common.colors;
2 
3 enum colfg : string{
4 	def =          "\x1b[39m",
5 	black =        "\x1b[30m",
6 	lightblack =   "\x1b[90m",
7 	red =          "\x1b[31m",
8 	lightred =     "\x1b[91m",
9 	green =        "\x1b[32m",
10 	lightgreen =   "\x1b[92m",
11 	yellow =       "\x1b[33m",
12 	lightyellow =  "\x1b[93m",
13 	blue =         "\x1b[34m",
14 	lightblue =    "\x1b[94m",
15 	magenta =      "\x1b[35m",
16 	lightmagenta = "\x1b[95m",
17 	cyan =         "\x1b[36m",
18 	lightcyan =    "\x1b[96m",
19 	white =        "\x1b[37m",
20 	lightwhite =   "\x1b[97m"
21 }
22 enum colbg : string{
23 	def =          "\x1b[49m",
24 	black =        "\x1b[40m",
25 	lightblack =   "\x1b[100m",
26 	red =          "\x1b[41m",
27 	lightred =     "\x1b[101m",
28 	green =        "\x1b[42m",
29 	lightgreen =   "\x1b[102m",
30 	yellow =       "\x1b[43m",
31 	lightyellow =  "\x1b[103m",
32 	blue =         "\x1b[44m",
33 	lightblue =    "\x1b[104m",
34 	magenta =      "\x1b[45m",
35 	lightmagenta = "\x1b[105m",
36 	cyan =         "\x1b[46m",
37 	lightcyan =    "\x1b[106m",
38 	white =        "\x1b[47m",
39 	lightwhite =   "\x1b[107m"
40 }
41 
42 enum colvar : string{
43 	none =      "\x1b[0m",
44 	bold =      "\x1b[1m",
45 	faded =     "\x1b[2m",
46 	italic =    "\x1b[3m",
47 	ulined =    "\x1b[4m",
48 	striked =   "\x1b[9m",
49 	inverted =  "\x1b[7m",
50 	nobold =    "\x1b[21m",
51 	nofaded =   "\x1b[22m",
52 	noitalic =  "\x1b[23m",
53 	noulined =  "\x1b[24m",
54 	nostriked = "\x1b[29m",
55 	end =       "\x1b[m"
56 }