summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 987fd1b0..064f2172 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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);