1 module des.log.consolecolor;
2 
3 /// console escape color
4 enum CEColor
5 {
6     OFF = "\x1b[0m", /// reset color
7 
8     // Regular Colors
9     FG_BLACK  = "\x1b[0;30m", ///
10     FG_RED    = "\x1b[0;31m", ///
11     FG_GREEN  = "\x1b[0;32m", ///
12     FG_YELLOW = "\x1b[0;33m", ///
13     FG_BLUE   = "\x1b[0;34m", ///
14     FG_PURPLE = "\x1b[0;35m", ///
15     FG_CYAN   = "\x1b[0;36m", ///
16     FG_WHITE  = "\x1b[0;37m", ///
17 
18     // Bold
19     FG_B_BLACK  = "\x1b[1;30m", ///
20     FG_B_RED    = "\x1b[1;31m", ///
21     FG_B_GREEN  = "\x1b[1;32m", ///
22     FG_B_YELLOW = "\x1b[1;33m", ///
23     FG_B_BLUE   = "\x1b[1;34m", ///
24     FG_B_PURPLE = "\x1b[1;35m", ///
25     FG_B_CYAN   = "\x1b[1;36m", ///
26     FG_B_WHITE  = "\x1b[1;37m", ///
27 
28     // Underline
29     FG_U_BLACK  = "\x1b[4;30m", ///
30     FG_U_RED    = "\x1b[4;31m", ///
31     FG_U_GREEN  = "\x1b[4;32m", ///
32     FG_U_YELLOW = "\x1b[4;33m", ///
33     FG_U_BLUE   = "\x1b[4;34m", ///
34     FG_U_PURPLE = "\x1b[4;35m", ///
35     FG_U_CYAN   = "\x1b[4;36m", ///
36     FG_U_WHITE  = "\x1b[4;37m", ///
37 
38     // Background
39     BG_BLACK  = "\x1b[40m", ///
40     BG_RED    = "\x1b[41m", ///
41     BG_GREEN  = "\x1b[42m", ///
42     BG_YELLOW = "\x1b[43m", ///
43     BG_BLUE   = "\x1b[44m", ///
44     BG_PURPLE = "\x1b[45m", ///
45     BG_CYAN   = "\x1b[46m", ///
46     BG_WHITE  = "\x1b[47m", ///
47 
48     // High Intensity
49     FG_I_BLACK  = "\x1b[0;90m", ///
50     FG_I_RED    = "\x1b[0;91m", ///
51     FG_I_GREEN  = "\x1b[0;92m", ///
52     FG_I_YELLOW = "\x1b[0;93m", ///
53     FG_I_BLUE   = "\x1b[0;94m", ///
54     FG_I_PURPLE = "\x1b[0;95m", ///
55     FG_I_CYAN   = "\x1b[0;96m", ///
56     FG_I_WHITE  = "\x1b[0;97m", ///
57 
58     // Bold High Intensity
59     FG_BI_BLACK  = "\x1b[1;90m", ///
60     FG_BI_RED    = "\x1b[1;91m", ///
61     FG_BI_GREEN  = "\x1b[1;92m", ///
62     FG_BI_YELLOW = "\x1b[1;93m", ///
63     FG_BI_BLUE   = "\x1b[1;94m", ///
64     FG_BI_PURPLE = "\x1b[1;95m", ///
65     FG_BI_CYAN   = "\x1b[1;96m", ///
66     FG_BI_WHITE  = "\x1b[1;97m", ///
67 
68     // High Intensity backgrounds
69     BG_I_BLACK  = "\x1b[0;100m", ///
70     BG_I_RED    = "\x1b[0;101m", ///
71     BG_I_GREEN  = "\x1b[0;102m", ///
72     BG_I_YELLOW = "\x1b[0;103m", ///
73     BG_I_BLUE   = "\x1b[0;104m", ///
74     BG_I_PURPLE = "\x1b[0;105m", ///
75     BG_I_CYAN   = "\x1b[0;106m", ///
76     BG_I_WHITE  = "\x1b[0;107m", ///
77 };