summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-18 14:52:27 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-18 14:52:27 +0000
commite5eee7de0c35e296b92707fdf66ddd5271f4bcfc (patch)
treeaf6397f3e9e169d12a4cc35b25485cbb4274a313 /input.c
parentd8261019f1b1fcf58a79b82448e8851e3acfd026 (diff)
Support the latest theory for mouse input, this is enabled/disabled with SM/RM
1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From Egmont Koblinger.
Diffstat (limited to 'input.c')
-rw-r--r--input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/input.c b/input.c
index 8846c1c7..c4e19c06 100644
--- a/input.c
+++ b/input.c
@@ -1260,6 +1260,9 @@ input_csi_dispatch(struct input_ctx *ictx)
case 1005:
screen_write_mode_clear(&ictx->ctx, MODE_MOUSE_UTF8);
break;
+ case 1006:
+ screen_write_mode_clear(&ictx->ctx, MODE_MOUSE_SGR);
+ break;
case 47:
case 1047:
window_pane_alternate_off(wp, &ictx->cell, 0);
@@ -1320,6 +1323,9 @@ input_csi_dispatch(struct input_ctx *ictx)
case 1005:
screen_write_mode_set(&ictx->ctx, MODE_MOUSE_UTF8);
break;
+ case 1006:
+ screen_write_mode_set(&ictx->ctx, MODE_MOUSE_SGR);
+ break;
case 47:
case 1047:
window_pane_alternate_on(wp, &ictx->cell, 0);