From d90ea88aa2f5662ccfdf70287186a698ca5d377f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 9 Jul 2019 11:06:20 +0200 Subject: [PATCH] vt: handle ESC correctly in OSC string state --- vt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vt.c b/vt.c index 431d1d00..967d2827 100644 --- a/vt.c +++ b/vt.c @@ -334,7 +334,12 @@ static const struct state_transition state_osc_string[256] = { [0x08 ... 0x17] = {.action = ACTION_IGNORE}, [0x19] = {.action = ACTION_IGNORE}, [0x1c ... 0x1f] = {.action = ACTION_IGNORE}, + [0x20 ... 0xff] = {.action = ACTION_OSC_PUT}, + + [0x18] = {.action = ACTION_EXECUTE, .state = STATE_GROUND}, + [0x1a] = {.action = ACTION_EXECUTE, .state = STATE_GROUND}, + [0x1b] = { .state = STATE_ESCAPE}, #if 0 [0x20 ... 0x7f] = {.action = ACTION_OSC_PUT}, [0x9c] = { .state = STATE_GROUND},