diff options
author | Adam Borowski <kilobyte@angband.pl> | 2016-09-15 16:47:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-22 11:41:54 +0200 |
commit | cc67dc28b33917227214a692534d817d727fb934 (patch) | |
tree | 22f4aadba229d62d5d287099ccc1e49b92e711a7 /drivers/tty | |
parent | vt: Drop a no longer true comment. (diff) | |
download | linux-cc67dc28b33917227214a692534d817d727fb934.tar.xz linux-cc67dc28b33917227214a692534d817d727fb934.zip |
vt: Support \e[90-97m (bright foreground colors).
These codes are supported by all major terminals, thus they occasionally see
some use despite being redundant with \e[38;5;(x+8)m or (less exactly)
\e[1;3(x)m.
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 20d89c2a780a..5cabd796a195 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -1415,6 +1415,10 @@ 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; + vc->vc_par[i] -= 60; + } if (vc->vc_par[i] >= 30 && vc->vc_par[i] <= 37) vc->vc_color = color_table[vc->vc_par[i] - 30] | (vc->vc_color & 0xf0); |