diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-11-23 21:21:12 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-11-23 21:21:12 +0000 |
commit | b642b3c8e388d0c9a81d18ae183bb62cfd24d434 (patch) | |
tree | a72efec9e4617bfea8043a5895f9254de7f84742 /tty.c | |
parent | d63de1e407176bab41c61ad7f3def0e4d0707cdc (diff) | |
parent | 32e510bd70eedbeec8590b9bf786b11430ddaac3 (diff) | |
download | rtmux-b642b3c8e388d0c9a81d18ae183bb62cfd24d434.tar.gz rtmux-b642b3c8e388d0c9a81d18ae183bb62cfd24d434.tar.bz2 rtmux-b642b3c8e388d0c9a81d18ae183bb62cfd24d434.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -521,21 +521,15 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) } tty->cstyle = s->cstyle; } - if (changed & (ALL_MOUSE_MODES|MODE_MOUSE_UTF8)) { + if (changed & ALL_MOUSE_MODES) { if (mode & ALL_MOUSE_MODES) { /* - * Enable the UTF-8 (1005) extension if configured to. * Enable the SGR (1006) extension unconditionally, as * this is safe from misinterpretation. Do it in this * order, because in some terminals it's the last one * that takes effect and SGR is the preferred one. */ - 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_BUTTON) tty_puts(tty, "\033[?1002h"); else if (mode & MODE_MOUSE_STANDARD) @@ -545,10 +539,7 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) tty_puts(tty, "\033[?1002l"); else if (tty->mode & MODE_MOUSE_STANDARD) tty_puts(tty, "\033[?1000l"); - tty_puts(tty, "\033[?1006l"); - if (tty->mode & MODE_MOUSE_UTF8) - tty_puts(tty, "\033[?1005l"); } } if (changed & MODE_KKEYPAD) { |