mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-19 01:46:33 +02:00
Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these separately but forgot :-/.
This commit is contained in:
6
input.c
6
input.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: input.c,v 1.51 2008-07-23 23:44:50 nicm Exp $ */
|
||||
/* $Id: input.c,v 1.52 2008-07-24 21:42:40 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -1055,7 +1055,7 @@ input_handle_sequence_sgr(struct input_ctx *ictx)
|
||||
n = ARRAY_LENGTH(&ictx->args);
|
||||
if (n == 0) {
|
||||
attr = 0;
|
||||
colr = SCREEN_DEFCOLR;
|
||||
colr = 0x88;
|
||||
} else {
|
||||
attr = s->attr;
|
||||
colr = s->colr;
|
||||
@@ -1066,7 +1066,7 @@ input_handle_sequence_sgr(struct input_ctx *ictx)
|
||||
case 0:
|
||||
case 10:
|
||||
attr &= ATTR_CHARSET;
|
||||
colr = SCREEN_DEFCOLR;
|
||||
colr = 0x88;
|
||||
break;
|
||||
case 1:
|
||||
attr |= ATTR_BRIGHT;
|
||||
|
Reference in New Issue
Block a user