summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-11-23 23:47:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-11-23 23:47:58 +0000
commite6f9a7266c55059eef58d298703c2bd709014116 (patch)
tree62188b37c124180c57d8eefa75c8a9381da7febd /usr.bin/tmux/input.c
parent5cb7d6a7b7498bb4210e449f6a6863524e21b294 (diff)
Partly revert previous, it is harmless to keep support for UTF-8 mouse
mode inside tmux, just no longer support it for tmux itself.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 2ef69973ca2..e5521c885d8 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.95 2015/11/23 20:53:09 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.96 2015/11/23 23:47:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1461,6 +1461,9 @@ input_csi_dispatch_rm_private(struct input_ctx *ictx)
case 1004:
screen_write_mode_clear(&ictx->ctx, MODE_FOCUSON);
break;
+ case 1005:
+ screen_write_mode_clear(&ictx->ctx, MODE_MOUSE_UTF8);
+ break;
case 1006:
screen_write_mode_clear(&ictx->ctx, MODE_MOUSE_SGR);
break;
@@ -1541,6 +1544,9 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx)
screen_write_mode_set(&ictx->ctx, MODE_FOCUSON);
wp->flags |= PANE_FOCUSPUSH; /* force update */
break;
+ case 1005:
+ screen_write_mode_set(&ictx->ctx, MODE_MOUSE_UTF8);
+ break;
case 1006:
screen_write_mode_set(&ictx->ctx, MODE_MOUSE_SGR);
break;