aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-22 18:19:00 +0000
committerChristopher Faylor <me@cgf.cx>2001-03-22 18:19:00 +0000
commit0b30bad4561946306d8d31517d8110883d4ca750 (patch)
tree0b5397326d4de38a73275b1bb46f33fbed68d72e /winsup
parent9991281584d90ab2d879a97b2636ffb9efe21d15 (diff)
downloadnewlib-0b30bad4561946306d8d31517d8110883d4ca750.zip
newlib-0b30bad4561946306d8d31517d8110883d4ca750.tar.gz
newlib-0b30bad4561946306d8d31517d8110883d4ca750.tar.bz2
* fhandler_console.cc (fhandler_console::set_default_attr): Update console
color attributes on tty reset.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_console.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c092b5a..53817be 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 935b7bf..d780f8c 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