diff options
author | 2015-11-23 20:53:09 +0000 | |
---|---|---|
committer | 2015-11-23 20:53:09 +0000 | |
commit | 2ac09bbfe3a94ec29e14500a26266b4aeb6bb091 (patch) | |
tree | f89e2ea808425308f43c2641a5066fd9de681ad0 /usr.bin/tmux/input-keys.c | |
parent | I accidentally removed a newline in usage() when converting the log (diff) | |
download | wireguard-openbsd-2ac09bbfe3a94ec29e14500a26266b4aeb6bb091.tar.xz wireguard-openbsd-2ac09bbfe3a94ec29e14500a26266b4aeb6bb091.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 'usr.bin/tmux/input-keys.c')
-rw-r--r-- | usr.bin/tmux/input-keys.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index 0b6b7e8f2be..9c043a910c1 100644 --- a/usr.bin/tmux/input-keys.c +++ b/usr.bin/tmux/input-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input-keys.c,v 1.49 2015/11/16 22:57:51 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.50 2015/11/23 20:53:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -243,17 +243,11 @@ input_key_mouse(struct window_pane *wp, struct mouse_event *m) * is because an old style mouse release event cannot be converted into * the new SGR format, since the released button is unknown). Otherwise * pretend that tmux doesn't speak this extension, and fall back to the - * UTF-8 (1005) extension if the application requested, or to the * legacy format. */ if (m->sgr_type != ' ' && (wp->screen->mode & MODE_MOUSE_SGR)) { len = xsnprintf(buf, sizeof buf, "\033[<%u;%u;%u%c", m->sgr_b, x + 1, y + 1, m->sgr_type); - } else if (wp->screen->mode & MODE_MOUSE_UTF8) { - len = xsnprintf(buf, sizeof buf, "\033[M"); - len += utf8_split2(m->b + 32, &buf[len]); - len += utf8_split2(x + 33, &buf[len]); - len += utf8_split2(y + 33, &buf[len]); } else { if (m->b > 223) return; |