summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-11-04 19:28:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-11-04 19:28:58 +0000
commit25975cf5aea50f328abda5e893cb48aa2fbf1e1e (patch)
tree0b90a9d81e0d3f59a6c137514a1e0cc37f4925e6 /input.c
parent08e615a03a59d304c8bacf55a3401c8822314434 (diff)
Alternative charset commands.
Diffstat (limited to 'input.c')
-rw-r--r--input.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/input.c b/input.c
index 8df09c38..dddba74b 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.63 2008-10-09 21:22:16 nicm Exp $ */
+/* $Id: input.c,v 1.64 2008-11-04 19:28:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -604,6 +604,9 @@ input_handle_private_two(u_char ch, struct input_ctx *ictx)
log_debug2("-- p2 %zu: %hhu (%c)", ictx->off, ch, ch);
switch (ch) {
+ case '0': /* Don't know? */
+ ictx->cell.attr |= GRID_ATTR_CHARSET;
+ break;
case '=': /* DECKPAM */
screen_write_kkeypadmode(&ictx->ctx, 1);
log_debug("kkeypad on (application mode)");
@@ -634,6 +637,9 @@ input_handle_standard_two(u_char ch, struct input_ctx *ictx)
log_debug2("-- s2 %zu: %hhu (%c)", ictx->off, ch, ch);
switch (ch) {
+ case 'B': /* Don't know? */
+ ictx->cell.attr &= ~GRID_ATTR_CHARSET;
+ break;
case 'c': /* RIS */
memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);