From a3d919a90d38623f743ac997f1db2de3204faaf5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 20 Jan 2020 18:38:50 +0100 Subject: input: implement metaSendsEscape and eightBitMeta --- csi.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'csi.c') diff --git a/csi.c b/csi.c index 10935d85..f045bcaa 100644 --- a/csi.c +++ b/csi.c @@ -927,8 +927,16 @@ csi_dispatch(struct terminal *term, uint8_t final) term->mouse_reporting = MOUSE_URXVT; break; + case 1034: + /* smm */ + LOG_DBG("enabling 8-bit meta mode"); + term->meta.eight_bit = true; + break; + case 1036: - /* metaSendsEscape - we always send escape */ + /* metaSendsEscape */ + LOG_DBG("enabling meta-sends-escape"); + term->meta.esc_prefix = true; break; #if 0 @@ -1037,9 +1045,16 @@ csi_dispatch(struct terminal *term, uint8_t final) term->alt_scrolling = false; break; + case 1034: + /* rmm */ + LOG_DBG("disabling 8-bit meta mode"); + term->meta.eight_bit = false; + break; + case 1036: - /* metaSendsEscape - we always send escape */ - LOG_WARN("unimplemented: meta does *not* send escape"); + /* metaSendsEscape */ + LOG_DBG("disabling meta-sends-escape"); + term->meta.esc_prefix = false; break; #if 0 -- cgit v1.3