mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
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.
This commit is contained in:
parent
c213ee90f1
commit
31c73f0cf0
4 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue