projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0ac3f9
)
vt: fix \e[2m using the wrong placeholder color on graphical consoles
author
Adam Borowski
<kilobyte@angband.pl>
Sat, 3 Jun 2017 07:08:25 +0000
(09:08 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:20:08 +0000
(11:20 +0200)
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>
drivers/tty/vt/vt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/vt/vt.c
b/drivers/tty/vt/vt.c
index bacc48b0b4b858ac586f68aeafdeb8cd6be67acd..2ebaba16f7858ec2ac0b0395af2c16d5d98a8273 100644
(file)
--- 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_
ul
color;
+ a = (a & 0xf0) | vc->vc_
half
color;
if (_reverse)
a = ((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77);
if (_blink)