diff options
author | 2015-04-25 15:57:48 +0000 | |
---|---|---|
committer | 2015-04-25 15:57:48 +0000 | |
commit | 942a381f18e94f3da3ec35e600864dd1e3d88eac (patch) | |
tree | 8033a7e017c458af4f8a96ccfa08aebdbd08a192 /usr.bin/tmux/tty.c | |
parent | add check for overflow while doubling (very unlikely in practice, but still (diff) | |
download | wireguard-openbsd-942a381f18e94f3da3ec35e600864dd1e3d88eac.tar.xz wireguard-openbsd-942a381f18e94f3da3ec35e600864dd1e3d88eac.zip |
Explicitly cancel mouse "button" mode, this happens implicitly with some
one of the other things we send with xterm, but not with urxvt. Reported
by sthen@.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 3de249f74c6..3f335ed8985 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.178 2015/04/24 23:17:11 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.179 2015/04/25 15:57:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -220,7 +220,7 @@ tty_start_tty(struct tty *tty) tty_putcode(tty, TTYC_CNORM); if (tty_term_has(tty->term, TTYC_KMOUS)) - tty_puts(tty, "\033[?1000l\033[?1006l\033[?1005l"); + tty_puts(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l"); if (tty_term_has(tty->term, TTYC_XT)) { if (options_get_number(&global_options, "focus-events")) { @@ -294,7 +294,7 @@ tty_stop_tty(struct tty *tty) tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM)); if (tty_term_has(tty->term, TTYC_KMOUS)) - tty_raw(tty, "\033[?1000l\033[?1006l\033[?1005l"); + tty_raw(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l"); if (tty_term_has(tty->term, TTYC_XT)) { if (tty->flags & TTY_FOCUS) { |