summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2017-06-03 09:08:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-09 11:20:08 +0200
commit1c65a879cc494af8bf20eb47996e751034a53199 (patch)
treed5f16d02854db821b3a498b5c2f65f6bf52a5711 /drivers/tty
parente0ac3f98254da5304f0a0ffe6f033eb7764644b1 (diff)
downloadop-kernel-dev-1c65a879cc494af8bf20eb47996e751034a53199.zip
op-kernel-dev-1c65a879cc494af8bf20eb47996e751034a53199.tar.gz
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index bacc48b..2ebaba1 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)
OpenPOWER on IntegriCloud