aboutsummaryrefslogtreecommitdiff
path: root/input.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 /input.c
parent3aaf5b9b1e4b5249a86db97d67291e22b90e1fef (diff)
downloadrtmux-219442cff707a1febb6a75ba2cfe48b02ae0a22e.tar.gz
rtmux-219442cff707a1febb6a75ba2cfe48b02ae0a22e.tar.bz2
rtmux-219442cff707a1febb6a75ba2cfe48b02ae0a22e.zip
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 'input.c')
-rw-r--r--input.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/input.c b/input.c
index 55e0e4f7..818033b8 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.112 2010-12-30 22:27:38 tcunha Exp $ */
+/* $Id: input.c,v 1.113 2011-01-07 14:34:45 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1161,6 +1161,9 @@ input_csi_dispatch(struct input_ctx *ictx)
case 1003:
screen_write_mousemode_off(&ictx->ctx);
break;
+ case 1005:
+ screen_write_utf8mousemode(&ictx->ctx, 0);
+ break;
case 1049:
window_pane_alternate_off(wp, &ictx->cell);
break;
@@ -1209,6 +1212,9 @@ input_csi_dispatch(struct input_ctx *ictx)
case 1003:
screen_write_mousemode_on(&ictx->ctx, MODE_MOUSE_ANY);
break;
+ case 1005:
+ screen_write_utf8mousemode(&ictx->ctx, 1);
+ break;
case 1049:
window_pane_alternate_on(wp, &ictx->cell);
break;