Browse Source

vt: fix \e[2m using the wrong placeholder color on graphical consoles

Only vgacon and sisusbcon did it right, the rest (via generic code) tried
underline (usually cyan).

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Adam Borowski 8 years ago
parent
commit
1c65a879cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/tty/vt/vt.c

+ 1 - 1
drivers/tty/vt/vt.c

@@ -425,7 +425,7 @@ static u8 build_attr(struct vc_data *vc, u8 _color, u8 _intensity, u8 _blink,
 	else if (_underline)
 	else if (_underline)
 		a = (a & 0xf0) | vc->vc_ulcolor;
 		a = (a & 0xf0) | vc->vc_ulcolor;
 	else if (_intensity == 0)
 	else if (_intensity == 0)
-		a = (a & 0xf0) | vc->vc_ulcolor;
+		a = (a & 0xf0) | vc->vc_halfcolor;
 	if (_reverse)
 	if (_reverse)
 		a = ((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77);
 		a = ((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77);
 	if (_blink)
 	if (_blink)