mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 13:54:54 +02:00
Handle partial xterm function key sequences.
This commit is contained in:
@ -472,12 +472,15 @@ tty_keys_next(struct tty *tty)
|
||||
goto partial_key;
|
||||
}
|
||||
|
||||
|
||||
/* Not found. Try to parse a key with an xterm-style modifier. */
|
||||
key = xterm_keys_find(buf, len, &size);
|
||||
if (key != KEYC_NONE) {
|
||||
switch (xterm_keys_find(buf, len, &size, &key)) {
|
||||
case 0: /* found */
|
||||
evbuffer_drain(tty->event->input, size);
|
||||
goto handle_key;
|
||||
case -1: /* not found */
|
||||
break;
|
||||
case 1:
|
||||
goto partial_key;
|
||||
}
|
||||
|
||||
/* Skip the escape. */
|
||||
|
Reference in New Issue
Block a user