From f04f6d49fad03fb6efa351ded13cb93a0caeed1f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 15 Dec 2009 12:46:40 +0000 Subject: [PATCH] * fhandler_console.cc (char_command): Fix code to select dim mode to 2 rather than 9. Add entries for mode 22 (normal, not bold) 28 (visible, not invisible), 25 (not blinking). --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_console.cc | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d6f47bdd4..f089a101c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2009-12-15 Thomas Wolff + + * fhandler_console.cc (char_command): Fix code to select dim mode + to 2 rather than 9. Add entries for mode 22 (normal, not bold) + 28 (visible, not invisible), 25 (not blinking). + 2009-12-14 Corinna Vinschen * libc/getopt.c (getopt_internal): Set optreset according to optind diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 632ec1dcb..d2dab95c0 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1136,7 +1136,10 @@ fhandler_console::char_command (char c) case 1: /* bold */ dev_state->intensity = INTENSITY_BOLD; break; - case 4: + case 2: /* dim */ + dev_state->intensity = INTENSITY_DIM; + break; + case 4: /* underlined */ dev_state->underline = 1; break; case 5: /* blink mode */ @@ -1148,18 +1151,22 @@ fhandler_console::char_command (char c) case 8: /* invisible */ dev_state->intensity = INTENSITY_INVISIBLE; break; - case 9: /* dim */ - dev_state->intensity = INTENSITY_DIM; - break; case 10: /* end alternate charset */ dev_state->alternate_charset_active = false; break; case 11: /* start alternate charset */ dev_state->alternate_charset_active = true; break; + case 22: + case 28: + dev_state->intensity = INTENSITY_NORMAL; + break; case 24: dev_state->underline = false; break; + case 25: + dev_state->blink = false; + break; case 27: dev_state->reverse = false; break;