};
#endif
struct console_t {
+ boolean is_ready;
WORD background;
WORD foreground;
WORD attr;
DWORD out_cmode;
long color24;
} console = {
+ FALSE,
(FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED), /* background */
(FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED), /* foreground */
0, /* attr */
DWORD reserved;
unsigned do_anything, did_anything;
+ if (!console.is_ready)
+ return;
+
emit_hide_cursor();
for (pos.Y = 0; pos.Y < console.height; pos.Y++) {
for (pos.X = 0; pos.X < console.width; pos.X++) {
COORD pos;
DWORD unused;
+ if (!console.is_ready)
+ return;
+
for (pos.Y = 0; pos.Y < console.height; pos.Y++) {
for (pos.X = 0; pos.X < console.width; pos.X++) {
if (back->attribute != front->attribute) {
init_custom_colors();
#endif /* VIRTUAL_TERMINAL_SEQUENCES */
console.current_nhcolor = NO_COLOR;
+ console.is_ready = TRUE;
}
#endif /* TTY_GRAPHICS */