Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
console_defines.h
Go to the documentation of this file.
1
#ifndef _MACE_CMT_CONSOLE_DEFINES_H_
2
#define _MACE_CMT_CONSOLE_DEFINES_H_
3
5
21
#if COLOR_CONSOLE
22
23
#ifndef WIN32
24
31
#define CONSOLE_DEFAULT "\033[0m"
39
#define CONSOLE_BOLD "\033[1m"
40
48
#define CONSOLE_HALF_BRIGHT "\033[2m"
49
59
#define CONSOLE_ITALIC "\033[3m"
60
68
#define CONSOLE_UNDERLINE "\033[4m"
69
77
#define CONSOLE_BLINK "\033[5m"
78
85
#define CONSOLE_RAPID_BLINK "\033[6m"
86
94
#define CONSOLE_REVERSED "\033[7m"
95
103
#define CONSOLE_CONCEALED "\033[8m"
104
112
#define CONSOLE_STRIKETHROUGH "\033[9m"
113
115
116
135
#define CONSOLE_BLACK "\033[30m"
136
144
#define CONSOLE_RED "\033[31m"
145
153
#define CONSOLE_GREEN "\033[32m"
154
162
#define CONSOLE_BROWN "\033[33m"
163
171
#define CONSOLE_BLUE "\033[34m"
172
180
#define CONSOLE_MAGENTA "\033[35m"
181
189
#define CONSOLE_CYAN "\033[36m"
190
198
#define CONSOLE_WHITE "\033[37m"
199
207
#define CONSOLE_BLACK_BG "\033[40m"
208
216
#define CONSOLE_RED_BG "\033[41m"
217
225
#define CONSOLE_GREEN_BG "\033[42m"
226
234
#define CONSOLE_BROWN_BG "\033[43m"
235
243
#define CONSOLE_BLUE_BG "\033[44m"
244
252
#define CONSOLE_MAGENTA_BG "\033[45m"
253
261
#define CONSOLE_CYAN_BG "\033[46m"
262
270
#define CONSOLE_WHITE_BG "\033[47m"
271
272
273
274
#else
// WIN32
275
#include <winsock2.h>
276
#include <windows.h>
277
//#include <stdlib.h>
278
#include <conio.h>
279
286
#define CONSOLE_DEFAULT (FOREGROUND_BLUE | FOREGROUND_RED | FOREGROUND_GREEN)
294
#define CONSOLE_BOLD FOREGROUND_INTENSITY
295
303
#define CONSOLE_HALF_BRIGHT
304
314
#define CONSOLE_ITALIC
315
323
#define CONSOLE_UNDERLINE COMMON_LVB_UNDERSCORE
324
332
#define CONSOLE_BLINK
333
340
#define CONSOLE_RAPID_BLINK
341
349
#define CONSOLE_REVERSED CONSOLE_LVB_REVERSE_VIDEO
350
358
#define CONSOLE_CONCEALED
359
367
#define CONSOLE_STRIKETHROUGH
368
370
371
390
#define CONSOLE_BLACK 0
391
399
#define CONSOLE_RED FOREGROUND_RED
400
408
#define CONSOLE_GREEN FOREGROUND_GREEN
409
417
#define CONSOLE_BROWN (FOREGROUND_RED | FOREGROUND_GREEN)
418
426
#define CONSOLE_BLUE FOREGROUND_BLUE
427
435
#define CONSOLE_MAGENTA (CONSOLE_RED | CONSOLE_BLUE)
436
444
#define CONSOLE_CYAN (CONSOLE_BLUE | CONSOLE_GREEN)
445
453
#define CONSOLE_WHITE (CONSOLE_RED | CONSOLE_BLUE | CONSOLE_GREEN)
454
462
#define CONSOLE_BLACK_BG 0
463
471
#define CONSOLE_RED_BG (BACKGROUND_RED)
472
480
#define CONSOLE_GREEN_BG (BACKGROUND_GREEN)
481
489
#define CONSOLE_BROWN_BG (BACKGROUND_RED | BACKGROUND_GREEN)
490
498
#define CONSOLE_BLUE_BG (BACKGROUND_BLUE)
499
507
#define CONSOLE_MAGENTA_BG "\033[45m"
508
516
#define CONSOLE_CYAN_BG "\033[46m"
517
525
#define CONSOLE_WHITE_BG "\033[47m"
526
#endif
527
528
530
#else
// On Window's no color output WIN32
531
#define CONSOLE_DEFAULT ""
532
#define CONSOLE_BOLD ""
533
#define CONSOLE_HALF_BRIGHT ""
534
#define CONSOLE_ITALIC ""
535
#define CONSOLE_UNDERLINE ""
536
#define CONSOLE_BLINK ""
537
#define CONSOLE_RAPID_BLINK ""
538
#define CONSOLE_REVERSED ""
539
#define CONSOLE_CONCEALED ""
540
#define CONSOLE_STRIKETHROUGH ""
541
#define CONSOLE_BLACK ""
542
#define CONSOLE_RED ""
543
#define CONSOLE_GREEN ""
544
#define CONSOLE_BROWN ""
545
#define CONSOLE_BLUE ""
546
#define CONSOLE_MAGENTA ""
547
#define CONSOLE_CYAN ""
548
#define CONSOLE_WHITE ""
549
#define CONSOLE_BLACK_BG ""
550
#define CONSOLE_RED_BG ""
551
#define CONSOLE_GREEN_BG ""
552
#define CONSOLE_BROWN_BG ""
553
#define CONSOLE_BLUE_BG ""
554
#define CONSOLE_MAGENTA_BG ""
555
#define CONSOLE_CYAN_BG ""
556
#define CONSOLE_WHITE_BG ""
557
560
#endif
// NOT DEFINED WIN32
561
#endif
// _BOOST_CMT_CONSOLE_DEFINES_H_
libraries
fc
src
log
console_defines.h
Generated by
1.12.0