summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-01-13 08:12:53 +0000
committernicm <nicm@openbsd.org>2020-01-13 08:12:53 +0000
commit6648e05c361782d3305dd00273b5cede027dc497 (patch)
tree9655e0d11b14080ada4b81adaca076b97a7e3701 /usr.bin/tmux/tty.c
parentTreat plausible but invalid keys (like C-BSpace) as literal like any (diff)
downloadwireguard-openbsd-6648e05c361782d3305dd00273b5cede027dc497.tar.xz
wireguard-openbsd-6648e05c361782d3305dd00273b5cede027dc497.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 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 5178bd3ae4c..5366c0e6228 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.338 2020/01/12 22:00:20 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.339 2020/01/13 08:12:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);