Commit fadb4244 authored by Adam Borowski's avatar Adam Borowski Committed by Greg Kroah-Hartman

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: default avatarAdam Borowski <kilobyte@angband.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cc67dc28
...@@ -1415,7 +1415,8 @@ static void csi_m(struct vc_data *vc) ...@@ -1415,7 +1415,8 @@ static void csi_m(struct vc_data *vc)
(vc->vc_color & 0x0f); (vc->vc_color & 0x0f);
break; break;
default: default:
if (vc->vc_par[i] >= 90 && vc->vc_par[i] <= 97) { if (vc->vc_par[i] >= 90 && vc->vc_par[i] <= 107) {
if (vc->vc_par[i] < 100)
vc->vc_intensity = 2; vc->vc_intensity = 2;
vc->vc_par[i] -= 60; vc->vc_par[i] -= 60;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment