From ac3b78a84178a308536a56ea114b0f6f8ce6fb47 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 3 Jan 2011 23:35:21 +0000 Subject: 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. --- input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'input.c') diff --git a/input.c b/input.c index 49224e0e..cb8c4e52 100644 --- a/input.c +++ b/input.c @@ -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; -- cgit v1.2.3