Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these separately but forgot :-/.

This commit is contained in:
Nicholas Marriott
2008-07-24 21:42:40 +00:00
parent 815b217482
commit 3337dfcae5
11 changed files with 74 additions and 64 deletions

View File

@@ -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;