vte: implement DECKPAM and DECKPNM

Both either set or reset the keypad application mode.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-05-29 14:39:05 +02:00
parent cc3d8b22a4
commit 771ca42c16

View File

@ -636,6 +636,14 @@ static void do_esc(struct kmscon_vte *vte, uint32_t data)
/* Invoke G3 into GR */
vte->gr = vte->g3;
break;
case '=': /* DECKPAM */
/* Set application keypad mode */
vte->flags |= FLAG_KEYPAD_APPLICATION_MODE;
break;
case '>': /* DECKPNM */
/* Set numeric keypad mode */
vte->flags &= ~FLAG_KEYPAD_APPLICATION_MODE;
break;
default:
log_debug("unhandled escape seq %u", data);
}