Fabcoin Core  0.16.2
P2P Digital Currency
Terminal.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace dev
4 {
5 namespace con
6 {
7 
8 #if defined(_WIN32)
9 
10 #define EthReset "" // Text Reset
11 
12 #define EthReset "" // Text Reset
13 
14  // Regular Colors
15 #define EthBlack "" // Black
16 #define EthCoal "" // Black
17 #define EthGray "" // White
18 #define EthWhite "" // White
19 #define EthMaroon "" // Red
20 #define EthRed "" // Red
21 #define EthGreen "" // Green
22 #define EthLime "" // Green
23 #define EthOrange "" // Yellow
24 #define EthYellow "" // Yellow
25 #define EthNavy "" // Blue
26 #define EthBlue "" // Blue
27 #define EthViolet "" // Purple
28 #define EthPurple "" // Purple
29 #define EthTeal "" // Cyan
30 #define EthCyan "" // Cyan
31 
32 #define EthBlackBold "" // Black
33 #define EthCoalBold "" // Black
34 #define EthGrayBold "" // White
35 #define EthWhiteBold "" // White
36 #define EthMaroonBold "" // Red
37 #define EthRedBold "" // Red
38 #define EthGreenBold "" // Green
39 #define EthLimeBold "" // Green
40 #define EthOrangeBold "" // Yellow
41 #define EthYellowBold "" // Yellow
42 #define EthNavyBold "" // Blue
43 #define EthBlueBold "" // Blue
44 #define EthVioletBold "" // Purple
45 #define EthPurpleBold "" // Purple
46 #define EthTealBold "" // Cyan
47 #define EthCyanBold "" // Cyan
48 
49  // Background
50 #define EthOnBlack "" // Black
51 #define EthOnCoal "" // Black
52 #define EthOnGray "" // White
53 #define EthOnWhite "" // White
54 #define EthOnMaroon "" // Red
55 #define EthOnRed "" // Red
56 #define EthOnGreen "" // Green
57 #define EthOnLime "" // Green
58 #define EthOnOrange "" // Yellow
59 #define EthOnYellow "" // Yellow
60 #define EthOnNavy "" // Blue
61 #define EthOnBlue "" // Blue
62 #define EthOnViolet "" // Purple
63 #define EthOnPurple "" // Purple
64 #define EthOnTeal "" // Cyan
65 #define EthOnCyan "" // Cyan
66 
67  // Underline
68 #define EthBlackUnder "" // Black
69 #define EthGrayUnder "" // White
70 #define EthMaroonUnder "" // Red
71 #define EthGreenUnder "" // Green
72 #define EthOrangeUnder "" // Yellow
73 #define EthNavyUnder "" // Blue
74 #define EthVioletUnder "" // Purple
75 #define EthTealUnder "" // Cyan
76 
77 #else
78 
79 // #define EthReset "\x1b[0m" // Text Reset
80 #define EthReset "" // Text Reset
81 
82 // Regular Colors
83 // #define EthBlack "\x1b[30m" // Black
84 // #define EthCoal "\x1b[90m" // Black
85 // #define EthGray "\x1b[37m" // White
86 // #define EthWhite "\x1b[97m" // White
87 // #define EthMaroon "\x1b[31m" // Red
88 // #define EthRed "\x1b[91m" // Red
89 // #define EthGreen "\x1b[32m" // Green
90 // #define EthLime "\x1b[92m" // Green
91 // #define EthOrange "\x1b[33m" // Yellow
92 // #define EthYellow "\x1b[93m" // Yellow
93 // #define EthNavy "\x1b[34m" // Blue
94 // #define EthBlue "\x1b[94m" // Blue
95 // #define EthViolet "\x1b[35m" // Purple
96 // #define EthPurple "\x1b[95m" // Purple
97 // #define EthTeal "\x1b[36m" // Cyan
98 // #define EthCyan "\x1b[96m" // Cyan
99 
100 // #define EthBlackBold "\x1b[1;30m" // Black
101 // #define EthCoalBold "\x1b[1;90m" // Black
102 // #define EthGrayBold "\x1b[1;37m" // White
103 // #define EthWhiteBold "\x1b[1;97m" // White
104 // #define EthMaroonBold "\x1b[1;31m" // Red
105 // #define EthRedBold "\x1b[1;91m" // Red
106 // #define EthGreenBold "\x1b[1;32m" // Green
107 // #define EthLimeBold "\x1b[1;92m" // Green
108 // #define EthOrangeBold "\x1b[1;33m" // Yellow
109 // #define EthYellowBold "\x1b[1;93m" // Yellow
110 // #define EthNavyBold "\x1b[1;34m" // Blue
111 // #define EthBlueBold "\x1b[1;94m" // Blue
112 // #define EthVioletBold "\x1b[1;35m" // Purple
113 // #define EthPurpleBold "\x1b[1;95m" // Purple
114 // #define EthTealBold "\x1b[1;36m" // Cyan
115 // #define EthCyanBold "\x1b[1;96m" // Cyan
116 #define EthBlack "" // Black
117 #define EthCoal "" // Black
118 #define EthGray "" // White
119 #define EthWhite "" // White
120 #define EthMaroon "" // Red
121 #define EthRed "" // Red
122 #define EthGreen "" // Green
123 #define EthLime "" // Green
124 #define EthOrange "" // Yellow
125 #define EthYellow "" // Yellow
126 #define EthNavy "" // Blue
127 #define EthBlue "" // Blue
128 #define EthViolet "" // Purple
129 #define EthPurple "" // Purple
130 #define EthTeal "" // Cyan
131 #define EthCyan "" // Cyan
132 
133 #define EthBlackBold "" // Black
134 #define EthCoalBold "" // Black
135 #define EthGrayBold "" // White
136 #define EthWhiteBold "" // White
137 #define EthMaroonBold "" // Red
138 #define EthRedBold "" // Red
139 #define EthGreenBold "" // Green
140 #define EthLimeBold "" // Green
141 #define EthOrangeBold "" // Yellow
142 #define EthYellowBold "" // Yellow
143 #define EthNavyBold "" // Blue
144 #define EthBlueBold "" // Blue
145 #define EthVioletBold "" // Purple
146 #define EthPurpleBold "" // Purple
147 #define EthTealBold "" // Cyan
148 #define EthCyanBold "" // Cyan
149 
150 // Background
151 // #define EthOnBlack "\x1b[40m" // Black
152 // #define EthOnCoal "\x1b[100m" // Black
153 // #define EthOnGray "\x1b[47m" // White
154 // #define EthOnWhite "\x1b[107m" // White
155 // #define EthOnMaroon "\x1b[41m" // Red
156 // #define EthOnRed "\x1b[101m" // Red
157 // #define EthOnGreen "\x1b[42m" // Green
158 // #define EthOnLime "\x1b[102m" // Green
159 // #define EthOnOrange "\x1b[43m" // Yellow
160 // #define EthOnYellow "\x1b[103m" // Yellow
161 // #define EthOnNavy "\x1b[44m" // Blue
162 // #define EthOnBlue "\x1b[104m" // Blue
163 // #define EthOnViolet "\x1b[45m" // Purple
164 // #define EthOnPurple "\x1b[105m" // Purple
165 // #define EthOnTeal "\x1b[46m" // Cyan
166 // #define EthOnCyan "\x1b[106m" // Cyan
167 #define EthOnBlack "" // Black
168 #define EthOnCoal "" // Black
169 #define EthOnGray "" // White
170 #define EthOnWhite "" // White
171 #define EthOnMaroon "" // Red
172 #define EthOnRed "" // Red
173 #define EthOnGreen "" // Green
174 #define EthOnLime "" // Green
175 #define EthOnOrange "" // Yellow
176 #define EthOnYellow "" // Yellow
177 #define EthOnNavy "" // Blue
178 #define EthOnBlue "" // Blue
179 #define EthOnViolet "" // Purple
180 #define EthOnPurple "" // Purple
181 #define EthOnTeal "" // Cyan
182 #define EthOnCyan "" // Cyan
183 
184 
185 // Underline
186 // #define EthBlackUnder "\x1b[4;30m" // Black
187 // #define EthGrayUnder "\x1b[4;37m" // White
188 // #define EthMaroonUnder "\x1b[4;31m" // Red
189 // #define EthGreenUnder "\x1b[4;32m" // Green
190 // #define EthOrangeUnder "\x1b[4;33m" // Yellow
191 // #define EthNavyUnder "\x1b[4;34m" // Blue
192 // #define EthVioletUnder "\x1b[4;35m" // Purple
193 // #define EthTealUnder "\x1b[4;36m" // Cyan
194 #define EthBlackUnder "" // Black
195 #define EthGrayUnder "" // White
196 #define EthMaroonUnder "" // Red
197 #define EthGreenUnder "" // Green
198 #define EthOrangeUnder "" // Yellow
199 #define EthNavyUnder "" // Blue
200 #define EthVioletUnder "" // Purple
201 #define EthTealUnder "" // Cyan
202 
203 #endif
204 
205 }
206 
207 }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15