diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-18 15:03:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-18 15:03:50 +0000 |
commit | ba3b8ccc1d994ec535721d71b400c3e78ee5ec25 (patch) | |
tree | e8d3b3fcd45921d2551c2101e8874a80577a5bad | |
parent | e5eee7de0c35e296b92707fdf66ddd5271f4bcfc (diff) | |
download | rtmux-ba3b8ccc1d994ec535721d71b400c3e78ee5ec25.tar.gz rtmux-ba3b8ccc1d994ec535721d71b400c3e78ee5ec25.tar.bz2 rtmux-ba3b8ccc1d994ec535721d71b400c3e78ee5ec25.zip |
Correctly turn handle UTF8 mouse option being toggled, from Egmont Koblinger.
-rw-r--r-- | tty.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -489,7 +489,7 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) } tty->cstyle = s->cstyle; } - if (changed & ALL_MOUSE_MODES) { + if (changed & (ALL_MOUSE_MODES|MODE_MOUSE_UTF8)) { if (mode & ALL_MOUSE_MODES) { /* * Enable the UTF-8 (1005) extension if configured to. @@ -500,6 +500,8 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) */ if (mode & MODE_MOUSE_UTF8) tty_puts(tty, "\033[?1005h"); + else + tty_puts(tty, "\033[?1005l"); tty_puts(tty, "\033[?1006h"); if (mode & MODE_MOUSE_ANY) |