vt: break a couple of obsolete SCOish codes.
No modern terminal supports them, and SGR 38 conflicts with detecting xterm-256 colours. This also makes SGR 39 consistent with other popular terminals. Neither are used by ncurses' terminfo. Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1926d0aeec
commit
6454588092
|
@ -1300,21 +1300,8 @@ static void csi_m(struct vc_data *vc)
|
||||||
case 27:
|
case 27:
|
||||||
vc->vc_reverse = 0;
|
vc->vc_reverse = 0;
|
||||||
break;
|
break;
|
||||||
case 38: /* ANSI X3.64-1979 (SCO-ish?)
|
case 39:
|
||||||
* Enables underscore, white foreground
|
|
||||||
* with white underscore (Linux - use
|
|
||||||
* default foreground).
|
|
||||||
*/
|
|
||||||
vc->vc_color = (vc->vc_def_color & 0x0f) | (vc->vc_color & 0xf0);
|
vc->vc_color = (vc->vc_def_color & 0x0f) | (vc->vc_color & 0xf0);
|
||||||
vc->vc_underline = 1;
|
|
||||||
break;
|
|
||||||
case 39: /* ANSI X3.64-1979 (SCO-ish?)
|
|
||||||
* Disable underline option.
|
|
||||||
* Reset colour to default? It did this
|
|
||||||
* before...
|
|
||||||
*/
|
|
||||||
vc->vc_color = (vc->vc_def_color & 0x0f) | (vc->vc_color & 0xf0);
|
|
||||||
vc->vc_underline = 0;
|
|
||||||
break;
|
break;
|
||||||
case 49:
|
case 49:
|
||||||
vc->vc_color = (vc->vc_def_color & 0xf0) | (vc->vc_color & 0x0f);
|
vc->vc_color = (vc->vc_def_color & 0xf0) | (vc->vc_color & 0x0f);
|
||||||
|
|
Loading…
Reference in New Issue