69 #if PLATFORM == PLATFORM_WINDOWS
75 FOREGROUND_RED | FOREGROUND_GREEN,
77 FOREGROUND_RED | FOREGROUND_BLUE,
78 FOREGROUND_GREEN | FOREGROUND_BLUE,
79 FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE,
81 FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY,
83 FOREGROUND_RED | FOREGROUND_INTENSITY,
85 FOREGROUND_GREEN | FOREGROUND_INTENSITY,
86 FOREGROUND_BLUE | FOREGROUND_INTENSITY,
88 FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_INTENSITY,
90 FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY,
92 FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY
95 HANDLE hConsole = GetStdHandle(stdout_stream ? STD_OUTPUT_HANDLE : STD_ERROR_HANDLE);
96 SetConsoleTextAttribute(hConsole, WinColorFG[color]);
150 fprintf((stdout_stream? stdout : stderr),
"\x1b[%d%sm", UnixColorFG[color], (color >=
YELLOW && color <
MaxColors ?
";1" :
""));
const uint8 MaxColors
Definition: AppenderConsole.h:43
void * HANDLE
Definition: CascPort.h:146
FMT_API int fprintf(std::FILE *f, CStringRef format, ArgList args)
Definition: AppenderConsole.h:34
uint8_t uint8
Definition: Define.h:152