All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColorMacros.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_UTIL_COLORMACROS_H_
23 #define _BLAZE_UTIL_COLORMACROS_H_
24 
25 
26 //=================================================================================================
27 //
28 // COLOR MACRO SWITCH
29 //
30 //=================================================================================================
31 
33 
34 #define BLAZE_COLOR_OUTPUT 0
35 
36 
37 
38 
39 //=================================================================================================
40 //
41 // COLOR MACRO DEFINITIONS
42 //
43 //=================================================================================================
44 
45 #if BLAZE_COLOR_OUTPUT
46 
48 #define BLAZE_BLACK "\033[0;30m"
49 
51 #define BLAZE_RED "\033[0;31m"
52 
54 #define BLAZE_GREEN "\033[0;32m"
55 
57 #define BLAZE_BROWN "\033[0;33m"
58 
60 #define BLAZE_BLUE "\033[0;34m"
61 
63 #define BLAZE_MAGENTA "\033[0;35m"
64 
66 #define BLAZE_CYAN "\033[0;36m"
67 
69 #define BLAZE_WHITE "\033[0;37m"
70 
72 #define BLAZE_LIGHTBLACK "\033[1;30m"
73 
75 #define BLAZE_LIGHTRED "\033[1;31m"
76 
78 #define BLAZE_LIGHTGREEN "\033[1;32m"
79 
81 #define BLAZE_YELLOW "\033[1;33m"
82 
84 #define BLAZE_LIGHTBLUE "\033[1;34m"
85 
87 #define BLAZE_LIGHTMAGENTA "\033[1;35m"
88 
90 #define BLAZE_LIGHTCYAN "\033[1;36m"
91 
93 #define BLAZE_LIGHTWHITE "\033[1;37m"
94 
96 #define BLAZE_OLDCOLOR "\033[0m"
97 
98 #else
99 
101 #define BLAZE_BLACK ""
102 
104 #define BLAZE_RED ""
105 
107 #define BLAZE_GREEN ""
108 
110 #define BLAZE_BROWN ""
111 
113 #define BLAZE_BLUE ""
114 
116 #define BLAZE_MAGENTA ""
117 
119 #define BLAZE_CYAN ""
120 
122 #define BLAZE_WHITE ""
123 
125 #define BLAZE_LIGHTBLACK ""
126 
128 #define BLAZE_LIGHTRED ""
129 
131 #define BLAZE_LIGHTGREEN ""
132 
134 #define BLAZE_YELLOW ""
135 
137 #define BLAZE_LIGHTBLUE ""
138 
140 #define BLAZE_LIGHTMAGENTA ""
141 
143 #define BLAZE_LIGHTCYAN ""
144 
146 #define BLAZE_LIGHTWHITE ""
147 
149 #define BLAZE_OLDCOLOR ""
150 
151 #endif
152 
153 #endif