From 31c73f0cf01e1d0bdcd1435136b010c1c1ab442c Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sun, 29 Nov 2020 04:04:57 +0000 Subject: csi: add new private mode that makes the Escape key emit "\E[27;1;27~" This mode can be set by client programs with the DECSET, DECRST, XTSAVE and XTRESTORE sequences by using 27127 as the parameter. The sequence "\E[27;1;27~" is encoded in the same way as is done by xterm's "modifyOtherKeys" mode. Even though xterm itself never emits such a sequence for the Escape key, many programs already have support for parsing this style of key sequence. --- terminal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 6a20056c..3bb41d12 100644 --- a/terminal.c +++ b/terminal.c @@ -1523,6 +1523,7 @@ term_reset(struct terminal *term, bool hard) term->insert_mode = false; term->bracketed_paste = false; term->focus_events = false; + term->modify_escape_key = false; term->mouse_tracking = MOUSE_NONE; term->mouse_reporting = MOUSE_NORMAL; term->charsets.selected = 0; -- cgit v1.3