diff options
author | nicm <nicm> | 2020-03-16 09:18:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-03-17 16:16:23 +0000 |
commit | 617136c234f1a39c06e0ec4eed5c3ebea02cc85d (patch) | |
tree | eb41775d1c0c0fd1f13b0740251ea16d3bf0d476 | |
parent | f16085a362129f3b6801005fdff038d6845f4613 (diff) | |
download | rtmux-617136c234f1a39c06e0ec4eed5c3ebea02cc85d.tar.gz rtmux-617136c234f1a39c06e0ec4eed5c3ebea02cc85d.tar.bz2 rtmux-617136c234f1a39c06e0ec4eed5c3ebea02cc85d.zip |
Turn off mouse mode 1003 as well as the rest when exiting.
-rw-r--r-- | tty.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -330,8 +330,10 @@ tty_start_tty(struct tty *tty) log_debug("%s: using UTF-8 for ACS", c->name); tty_putcode(tty, TTYC_CNORM); - if (tty_term_has(tty->term, TTYC_KMOUS)) - tty_puts(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l"); + if (tty_term_has(tty->term, TTYC_KMOUS)) { + tty_puts(tty, "\033[?1000l\033[?1002l\033[?1003l"); + tty_puts(tty, "\033[?1006l\033[?1005l"); + } if (tty_term_flag(tty->term, TTYC_XT)) { if (options_get_number(global_options, "focus-events")) { @@ -404,8 +406,10 @@ tty_stop_tty(struct tty *tty) tty_raw(tty, tty_term_string(tty->term, TTYC_CR)); tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM)); - if (tty_term_has(tty->term, TTYC_KMOUS)) - tty_raw(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l"); + if (tty_term_has(tty->term, TTYC_KMOUS)) { + tty_raw(tty, "\033[?1000l\033[?1002l\033[?1003l"); + tty_raw(tty, "\033[?1006l\033[?1005l"); + } if (tty_term_flag(tty->term, TTYC_XT)) { if (tty->flags & TTY_FOCUS) { |