* fhandler_console.cc (fhandler_console::set_default_attr): Update console

color attributes on tty reset.
This commit is contained in:
Christopher Faylor 2001-03-22 18:19:00 +00:00
parent 9991281584
commit 0b30bad456
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-03-22 Egor Duda <deo@logos-m.ru>
* fhandler_console.cc (fhandler_console::set_default_attr): Update
console color attributes on tty reset.
Wed Mar 21 22:12:36 2001 Christopher Faylor <cgf@cygnus.com>
* autoload.cc (kernel32_init): New function for kernel32 autoload

View File

@ -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