diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-03-16 10:01:27 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-03-16 10:01:27 +0000 |
commit | 45be93f6044e9315e066c7ebd75bdd9c54a97498 (patch) | |
tree | 057597d17bae3227cebd6b752c21264455dee9c7 /tty.c | |
parent | f584fe1b006abf42aebd0b25b2ee8d082202c778 (diff) | |
parent | 7cae4e8e89a98329843e3df8b3644f501288256b (diff) | |
download | rtmux-45be93f6044e9315e066c7ebd75bdd9c54a97498.tar.gz rtmux-45be93f6044e9315e066c7ebd75bdd9c54a97498.tar.bz2 rtmux-45be93f6044e9315e066c7ebd75bdd9c54a97498.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-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) { |