mirror of https://github.com/wb2osz/direwolf.git
Early escape in text_color_init
This commit is contained in:
parent
87d9fe00b8
commit
bce03cdf2f
|
@ -207,10 +207,12 @@ void text_color_init (int enable_color)
|
|||
g_enable_color = enable_color;
|
||||
|
||||
|
||||
if (g_enable_color == 0) {
|
||||
return;
|
||||
}
|
||||
#if __WIN32__
|
||||
|
||||
|
||||
if (g_enable_color) {
|
||||
|
||||
HANDLE h;
|
||||
CONSOLE_SCREEN_BUFFER_INFO csbi;
|
||||
|
@ -229,15 +231,11 @@ void text_color_init (int enable_color)
|
|||
coord.Y = 0;
|
||||
FillConsoleOutputAttribute (h, attr, length, coord, &nwritten);
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
if (g_enable_color) {
|
||||
//printf ("%s", clear_eos);
|
||||
printf ("%s", background_white);
|
||||
printf ("%s", clear_eos);
|
||||
printf ("%s", black);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue