CreateConsoleScreenBuffer() copies the Default Attributes (colors) to the new screen buffer when called.
Signed-off-by: Hugh McMaster hugh.mcmaster@outlook.com --- programs/conhost/conhost.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index e43e8678ea1..bf81a093a73 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -95,6 +95,7 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int screen_buffer->max_height = console->active->max_height; screen_buffer->win.right = console->active->win.right - console->active->win.left; screen_buffer->win.bottom = console->active->win.bottom - console->active->win.top; + screen_buffer->attr = console->active->attr; screen_buffer->popup_attr = console->active->popup_attr; screen_buffer->font.width = console->active->font.width; screen_buffer->font.height = console->active->font.height;