aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2020-01-13 08:12:53 +0000
committernicm <nicm>2020-01-13 08:12:53 +0000
commit835a6c0cf088437e318783c96b142c7dc26c290f (patch)
treec43c15d3f5df4d9e20351149ba2afd38243143d4 /tty.c
parent04eee2410df4a85005c9562db13a1fec93d7c2e4 (diff)
downloadrtmux-835a6c0cf088437e318783c96b142c7dc26c290f.tar.gz
rtmux-835a6c0cf088437e318783c96b142c7dc26c290f.tar.bz2
rtmux-835a6c0cf088437e318783c96b142c7dc26c290f.zip
Be more specific in the DSR we are looking for so it doesn't get
confused with mouse sequences. Also set a flag and don't bother checking for it if we have already seen it (same for DA), and don't check if we never asked for it.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 2d4b4cc0..a1324528 100644
--- a/tty.c
+++ b/tty.c
@@ -327,8 +327,9 @@ tty_start_tty(struct tty *tty)
tty->flags |= TTY_FOCUS;
tty_puts(tty, "\033[?1004h");
}
- tty_puts(tty, "\033[c\033[1337n");
- }
+ tty_puts(tty, "\033[c\033[1337n"); /* DA and DSR */
+ } else
+ tty->flags |= (TTY_HAVEDA|TTY_HAVEDSR);
tty->flags |= TTY_STARTED;
tty_invalidate(tty);