summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-01-07 14:34:45 +0000
committerTiago Cunha <tcunha@gmx.com>2011-01-07 14:34:45 +0000
commit219442cff707a1febb6a75ba2cfe48b02ae0a22e (patch)
tree9183798a9411a3f45dc6ceb19383f51ba36135d1 /tmux.c
parent3aaf5b9b1e4b5249a86db97d67291e22b90e1fef (diff)
Sync OpenBSD patchset 828:
Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262 and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 0e6835c5..ca6956ff 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.232 2011-01-03 23:52:38 tcunha Exp $ */
+/* $Id: tmux.c,v 1.233 2011-01-07 14:34:45 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -340,6 +340,7 @@ main(int argc, char **argv)
/* Enable UTF-8 if the first client is on UTF-8 terminal. */
if (flags & IDENTIFY_UTF8) {
options_set_number(&global_s_options, "status-utf8", 1);
+ options_set_number(&global_s_options, "mouse-utf8", 1);
options_set_number(&global_w_options, "utf8", 1);
}