mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
csi: recognize, but ignore, modifyOtherKeys et al resource setters
This commit is contained in:
parent
13d3985ba8
commit
6c1b2f3c81
1 changed files with 23 additions and 0 deletions
23
csi.c
23
csi.c
|
|
@ -875,6 +875,29 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
break;
|
||||
}
|
||||
|
||||
case 'm':
|
||||
if (term->vt.params.idx == 0) {
|
||||
/* Reset all */
|
||||
} else {
|
||||
int resource = vt_param_get(term, 0, 0);
|
||||
int value __attribute__((unused)) = vt_param_get(term, 1, 0);
|
||||
|
||||
switch (resource) {
|
||||
case 0: /* modifyKeyboard */
|
||||
case 1: /* modifyCursorKeys */
|
||||
case 2: /* modifyFunctionKeys */
|
||||
case 4: /* modifyOtherKeys */
|
||||
/* Ignored, we always report modifiers */
|
||||
break;
|
||||
|
||||
default:
|
||||
LOG_WARN("invalid resource %d in %s",
|
||||
resource, csi_as_string(term, final));
|
||||
break;
|
||||
}
|
||||
}
|
||||
break; /* final == 'm' */
|
||||
|
||||
default:
|
||||
LOG_ERR("unimplemented: %s", csi_as_string(term, final));
|
||||
abort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue