Only forward extended keys if the application has requested them, even though

we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.
This commit is contained in:
Nicholas Marriott
2020-05-15 17:40:24 +01:00
parent 3a4f3ee087
commit c364a7142c
3 changed files with 22 additions and 2 deletions

View File

@ -496,6 +496,8 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
}
/* No builtin key sequence; construct an extended key sequence. */
if (~s->mode & MODE_KEXTENDED)
goto missing;
outkey = (key & KEYC_MASK_KEY);
if (outkey >= KEYC_BASE) {
switch (outkey) {