mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
csi: implement CSI > 4n (reset modifyOtherKeys)
This commit is contained in:
parent
876044df8d
commit
8485cdaaaa
3 changed files with 29 additions and 1 deletions
18
csi.c
18
csi.c
|
|
@ -1497,6 +1497,24 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
}
|
||||
break; /* final == 'm' */
|
||||
|
||||
case 'n': {
|
||||
int resource = vt_param_get(term, 0, 2); /* Default is modifyFuncionKeys */
|
||||
switch (resource) {
|
||||
case 0: /* modifyKeyboard */
|
||||
case 1: /* modifyCursorKeys */
|
||||
case 2: /* modifyFunctionKeys */
|
||||
break;
|
||||
|
||||
case 4: /* modifyOtherKeys */
|
||||
/* We don’t support fully disabling modifyOtherKeys,
|
||||
* but simply revert back to mode ‘1’ */
|
||||
term->modify_other_keys_2 = false;
|
||||
LOG_DBG("modifyOtherKeys=1");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 'u': {
|
||||
int flags = vt_param_get(term, 0, 0) & KITTY_KBD_SUPPORTED;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue