summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-22 10:33:50 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-22 10:33:50 +0000
commit67b4d5b6094c8845af344d1386bb3fed86f54b5a (patch)
treee199e17567f0ee470f202006cfc699bdc8134712 /input.c
parentad760b3bf702801eaa121715f2a283526d614913 (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 f44f602c..30f4f95d 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);