summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2016-09-15 16:47:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-22 11:41:54 +0200
commitfadb4244085cd04fd9c8b3a4b3bc161f506431f3 (patch)
tree62f3bfb85f9610bf691af01c38f5369abd3f41eb /drivers/tty
parentcc67dc28b33917227214a692534d817d727fb934 (diff)
downloadlinux-fadb4244085cd04fd9c8b3a4b3bc161f506431f3.tar.bz2
vt: Emulate \e[100-107m (bright background colors).
For now, these fall back to regular (dark) colors. It'd be tempting to replace blink with bright backgrounds, as permitted by CGA/VGA -- we already muck with the other programmable bit (foreground brightness vs 512 character font). This would bring vgacon in line with fbcon, which doesn't support blink anywhere but on some drivers renders that bit as bright background. If that is done, this commit should be amended to be one of ways of setting that bit. 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 5cabd796a195..e841a4e0e726 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -1415,8 +1415,9 @@ static void csi_m(struct vc_data *vc)
(vc->vc_color & 0x0f);
break;
default:
- if (vc->vc_par[i] >= 90 && vc->vc_par[i] <= 97) {
- vc->vc_intensity = 2;
+ if (vc->vc_par[i] >= 90 && vc->vc_par[i] <= 107) {
+ if (vc->vc_par[i] < 100)
+ vc->vc_intensity = 2;
vc->vc_par[i] -= 60;
}
if (vc->vc_par[i] >= 30 && vc->vc_par[i] <= 37)