Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adam Borowski and committed by
Greg Kroah-Hartman
1c65a879 e0ac3f98

+1 -1
+1 -1
drivers/tty/vt/vt.c
··· 425 425 else if (_underline) 426 426 a = (a & 0xf0) | vc->vc_ulcolor; 427 427 else if (_intensity == 0) 428 - a = (a & 0xf0) | vc->vc_ulcolor; 428 + a = (a & 0xf0) | vc->vc_halfcolor; 429 429 if (_reverse) 430 430 a = ((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77); 431 431 if (_blink)