From: Adam Borowski Date: Sat, 3 Jun 2017 07:08:25 +0000 (+0200) Subject: vt: fix \e[2m using the wrong placeholder color on graphical consoles X-Git-Tag: v4.13-rc1~183^2~34 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1c65a879cc494af8bf20eb47996e751034a53199;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index bacc48b0b4b8..2ebaba16f785 100644 --- a/drivers/tty/vt/vt.c +++ b/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) a = (a & 0xf0) | vc->vc_ulcolor; else if (_intensity == 0) - a = (a & 0xf0) | vc->vc_ulcolor; + a = (a & 0xf0) | vc->vc_halfcolor; if (_reverse) a = ((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77); if (_blink)