summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-17 09:06:10 +0000
committernicm <nicm>2020-04-17 09:06:10 +0000
commit7f2925a01de5da0416dd2589ee080f61650f2da9 (patch)
tree6350a739cc822519e35485d641667d319726a259 /tty-keys.c
parent5aba26f2cb7aa9609a3c3d2bd38a3942b6a378b8 (diff)
Support the application escape sequence mintty (means tmux doesn't have
to delay to wait for Escape).
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index dfea15b2..10c9c670 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -61,6 +61,9 @@ struct tty_default_key_raw {
key_code key;
};
static const struct tty_default_key_raw tty_default_raw_keys[] = {
+ /* Application escape. */
+ { "\033O[", '\033' },
+
/*
* Numeric keypad. Just use the vt100 escape sequences here and always
* put the terminal into keypad_xmit mode. Translation of numbers
@@ -1065,7 +1068,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
case 'M': /* mintty */
flags |= (TERM_256COLOURS|TERM_RGBCOLOURS);
break;
- case 'T': /* tmux - if newer will have the DSR as well */
+ case 'T': /* tmux - new versons reply to DSR which will set RGB */
flags |= (TERM_UTF8|TERM_256COLOURS);
break;
case 'U': /* rxvt-unicode */