Browse code

log: use a different color for debug (green).

Clément Bœsch authored on 2012/01/06 07:07:18
Showing 1 changed files
... ...
@@ -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