Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-22 21:19:00 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-22 21:19:00 +0300
commit0b30bad4561946306d8d31517d8110883d4ca750 (patch)
tree0b5397326d4de38a73275b1bb46f33fbed68d72e /winsup
parent9991281584d90ab2d879a97b2636ffb9efe21d15 (diff)
* 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 c092b5a5b..53817be62 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 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