mirror of
https://github.com/tmux/tmux.git
synced 2025-04-10 02:58:50 +00:00
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@.
This commit is contained in:
parent
aeedb464a6
commit
d23af6cca0
4
tty.c
4
tty.c
@ -220,7 +220,7 @@ tty_start_tty(struct tty *tty)
|
|||||||
|
|
||||||
tty_putcode(tty, TTYC_CNORM);
|
tty_putcode(tty, TTYC_CNORM);
|
||||||
if (tty_term_has(tty->term, TTYC_KMOUS))
|
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 (tty_term_has(tty->term, TTYC_XT)) {
|
||||||
if (options_get_number(&global_options, "focus-events")) {
|
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));
|
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
|
||||||
if (tty_term_has(tty->term, TTYC_KMOUS))
|
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_term_has(tty->term, TTYC_XT)) {
|
||||||
if (tty->flags & TTY_FOCUS) {
|
if (tty->flags & TTY_FOCUS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user