aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2015-11-23 20:53:09 +0000
committernicm <nicm>2015-11-23 20:53:09 +0000
commit32e510bd70eedbeec8590b9bf786b11430ddaac3 (patch)
tree9fbb34b458582bdc4e6de4d5ba3255bcec3ef238 /tty.c
parent28e72ae34d43dda28ca0e6dc652eaa1179c351c7 (diff)
downloadrtmux-32e510bd70eedbeec8590b9bf786b11430ddaac3.tar.gz
rtmux-32e510bd70eedbeec8590b9bf786b11430ddaac3.tar.bz2
rtmux-32e510bd70eedbeec8590b9bf786b11430ddaac3.zip
Remove support for the UTF-8 mouse extension. This was a briefly used,
poor idea that was fairly quickly replaced by SGR mouse input (which is now widespread). It is impossible to tell the difference between UTF-8 and non-UTF-8 mouse input; since the mouse-utf8 option was removed tmux has not handled it correctly in any case; and it is ridiculous to have three different forms of mouse input.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/tty.c b/tty.c
index 13ca7f8e..42be6d9f 100644
--- a/tty.c
+++ b/tty.c
@@ -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) {