diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-09-10 16:54:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 18:58:26 -0400 |
commit | 64545880927e15d5e82a9f33c3fd0704c775bd80 (patch) | |
tree | 8ac0a57f349e4a1066a0736ec837bba0f2f01da7 /drivers/tty | |
parent | 1926d0aeecf0280c67bf7464b2d68fe4e92c566b (diff) |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/vt/vt.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 9a8e8c5a0c73..ef95c6c1698f 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
@@ -1300,21 +1300,8 @@ static void csi_m(struct vc_data *vc) | |||
1300 | case 27: | 1300 | case 27: |
1301 | vc->vc_reverse = 0; | 1301 | vc->vc_reverse = 0; |
1302 | break; | 1302 | break; |
1303 | case 38: /* ANSI X3.64-1979 (SCO-ish?) | 1303 | case 39: |
1304 | * Enables underscore, white foreground | ||
1305 | * with white underscore (Linux - use | ||
1306 | * default foreground). | ||
1307 | */ | ||
1308 | vc->vc_color = (vc->vc_def_color & 0x0f) | (vc->vc_color & 0xf0); | ||
1309 | vc->vc_underline = 1; | ||
1310 | break; | ||
1311 | case 39: /* ANSI X3.64-1979 (SCO-ish?) | ||
1312 | * Disable underline option. | ||
1313 | * Reset colour to default? It did this | ||
1314 | * before... | ||
1315 | */ | ||
1316 | vc->vc_color = (vc->vc_def_color & 0x0f) | (vc->vc_color & 0xf0); | 1304 | vc->vc_color = (vc->vc_def_color & 0x0f) | (vc->vc_color & 0xf0); |
1317 | vc->vc_underline = 0; | ||
1318 | break; | 1305 | break; |
1319 | case 49: | 1306 | case 49: |
1320 | vc->vc_color = (vc->vc_def_color & 0xf0) | (vc->vc_color & 0x0f); | 1307 | vc->vc_color = (vc->vc_def_color & 0xf0) | (vc->vc_color & 0x0f); |