From 0b30bad4561946306d8d31517d8110883d4ca750 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 22 Mar 2001 18:19:00 +0000 Subject: [PATCH] * fhandler_console.cc (fhandler_console::set_default_attr): Update console color attributes on tty reset. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_console.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c092b5a5b..53817be62 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2001-03-22 Egor Duda + + * fhandler_console.cc (fhandler_console::set_default_attr): Update + console color attributes on tty reset. + Wed Mar 21 22:12:36 2001 Christopher Faylor * autoload.cc (kernel32_init): New function for kernel32 autoload diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 935b7bff0..d780f8c25 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -817,6 +817,8 @@ fhandler_console::set_default_attr () intensity = INTENSITY_NORMAL; fg = default_color & FOREGROUND_ATTR_MASK; bg = default_color & BACKGROUND_ATTR_MASK; + current_win32_attr = get_win32_attr (); + SetConsoleTextAttribute (get_output_handle (), current_win32_attr); } WORD