|
...
|
...
|
@@ -34,13 +34,13 @@ static int flags;
|
|
34
|
34
|
|
|
35
|
35
|
#if defined(_WIN32) && !defined(__MINGW32CE__)
|
|
36
|
36
|
#include <windows.h>
|
|
37
|
|
-static const uint8_t color[] = { 12, 12, 12, 14, 7, 7, 7 };
|
|
|
37
|
+static const uint8_t color[] = { 12, 12, 12, 14, 7, 7, 10 };
|
|
38
|
38
|
static int16_t background, attr_orig;
|
|
39
|
39
|
static HANDLE con;
|
|
40
|
40
|
#define set_color(x) SetConsoleTextAttribute(con, background | color[x])
|
|
41
|
41
|
#define reset_color() SetConsoleTextAttribute(con, attr_orig)
|
|
42
|
42
|
#else
|
|
43
|
|
-static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 9, 9, 9 };
|
|
|
43
|
+static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 9, 9, 2 };
|
|
44
|
44
|
#define set_color(x) fprintf(stderr, "\033[%d;3%dm", color[x] >> 4, color[x]&15)
|
|
45
|
45
|
#define reset_color() fprintf(stderr, "\033[0m")
|
|
46
|
46
|
#endif
|