Handle the XTMODKEYS escape code

Treat the XTerm specific modifyOtherKeys escape codes as putting the
disambiguate mode on/off the stack. The escape code causes XTerm to use
a (broken, naturally) variant of CSI u encoding for many keys, so we
treat it as going into the disambiguate mode.
This commit is contained in:
Kovid Goyal
2021-03-16 17:45:25 +05:30
parent a548c31d50
commit d360d077d1
4 changed files with 17 additions and 1 deletions

View File

@@ -943,7 +943,7 @@ dispatch_csi(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
break;
case 'm':
if (start_modifier == '>' && !end_modifier) {
REPORT_ERROR("Ignoring xterm specific key modifier resource options (CSI > m)");
CALL_CSI_HANDLER2(screen_xtmodkeys, 0, 0);
break;
}
/* fallthrough */