* 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).
This commit is contained in:
Corinna Vinschen 2009-12-15 12:46:40 +00:00
parent a4a2296704
commit f04f6d49fa
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2009-12-15 Thomas Wolff <towo@towo.net>
* 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 <corinna@vinschen.de> 2009-12-14 Corinna Vinschen <corinna@vinschen.de>
* libc/getopt.c (getopt_internal): Set optreset according to optind * libc/getopt.c (getopt_internal): Set optreset according to optind

View File

@ -1136,7 +1136,10 @@ fhandler_console::char_command (char c)
case 1: /* bold */ case 1: /* bold */
dev_state->intensity = INTENSITY_BOLD; dev_state->intensity = INTENSITY_BOLD;
break; break;
case 4: case 2: /* dim */
dev_state->intensity = INTENSITY_DIM;
break;
case 4: /* underlined */
dev_state->underline = 1; dev_state->underline = 1;
break; break;
case 5: /* blink mode */ case 5: /* blink mode */
@ -1148,18 +1151,22 @@ fhandler_console::char_command (char c)
case 8: /* invisible */ case 8: /* invisible */
dev_state->intensity = INTENSITY_INVISIBLE; dev_state->intensity = INTENSITY_INVISIBLE;
break; break;
case 9: /* dim */
dev_state->intensity = INTENSITY_DIM;
break;
case 10: /* end alternate charset */ case 10: /* end alternate charset */
dev_state->alternate_charset_active = false; dev_state->alternate_charset_active = false;
break; break;
case 11: /* start alternate charset */ case 11: /* start alternate charset */
dev_state->alternate_charset_active = true; dev_state->alternate_charset_active = true;
break; break;
case 22:
case 28:
dev_state->intensity = INTENSITY_NORMAL;
break;
case 24: case 24:
dev_state->underline = false; dev_state->underline = false;
break; break;
case 25:
dev_state->blink = false;
break;
case 27: case 27:
dev_state->reverse = false; dev_state->reverse = false;
break; break;