diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-01-28 12:01:28 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-01-28 12:01:28 +0000 |
commit | 60ab7144517483d4343e7a68625e376c34557b8a (patch) | |
tree | a0ed2af485858723be0afbfba456f446aafbbd7a /tty-keys.c | |
parent | 685eb381dec7fc741a15ce11a84d8c96ed66ce42 (diff) | |
parent | a6129e99749d2bbc8b4a991c7b5d09300aa55f39 (diff) | |
download | rtmux-60ab7144517483d4343e7a68625e376c34557b8a.tar.gz rtmux-60ab7144517483d4343e7a68625e376c34557b8a.tar.bz2 rtmux-60ab7144517483d4343e7a68625e376c34557b8a.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1099,7 +1099,7 @@ tty_keys_device_status_report(struct tty *tty, const char *buf, size_t len, return (-1); if (len == 2) return (1); - if (buf[2] != 'I') + if (buf[2] != 'I' && buf[2] != 'T') return (-1); if (len == 3) return (1); @@ -1117,7 +1117,9 @@ tty_keys_device_status_report(struct tty *tty, const char *buf, size_t len, /* Set terminal flags. */ if (strncmp(tmp, "ITERM2 ", 7) == 0) - flags |= TERM_DECSLRM; + flags |= (TERM_DECSLRM|TERM_256COLOURS|TERM_RGBCOLOURS); + if (strncmp(tmp, "TMUX ", 5) == 0) + flags |= (TERM_256COLOURS|TERM_RGBCOLOURS); log_debug("%s: received DSR %.*s", c->name, (int)*size, buf); tty_set_flags(tty, flags); |