aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-11-29 04:04:57 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-11-29 04:04:57 +0000
commit31c73f0cf01e1d0bdcd1435136b010c1c1ab442c (patch)
tree7ac39efb8f426cc1edb613405d11d2b1f69a2042 /terminal.h
parentkeymap: add ‘CSI 27;<mod>;27~’ escapes for Esc with modifiers (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index ea49edf2..4eca0aa9 100644
--- a/terminal.h
+++ b/terminal.h
@@ -236,6 +236,7 @@ struct terminal {
bool bracketed_paste;
bool focus_events;
bool alt_scrolling;
+ bool modify_escape_key;
enum cursor_origin origin;
enum cursor_keys cursor_keys_mode;
enum keypad_keys keypad_keys_mode;
@@ -296,6 +297,7 @@ struct terminal {
uint32_t num_lock_modifier:1;
uint32_t bell_is_urgent:1;
uint32_t alt_screen:1;
+ uint32_t modify_escape_key:1;
} xtsave;
char *window_title;