diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-18 14:52:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-18 14:52:27 +0000 |
commit | e5eee7de0c35e296b92707fdf66ddd5271f4bcfc (patch) | |
tree | af6397f3e9e169d12a4cc35b25485cbb4274a313 /input.c | |
parent | d8261019f1b1fcf58a79b82448e8851e3acfd026 (diff) | |
download | rtmux-e5eee7de0c35e296b92707fdf66ddd5271f4bcfc.tar.gz rtmux-e5eee7de0c35e296b92707fdf66ddd5271f4bcfc.tar.bz2 rtmux-e5eee7de0c35e296b92707fdf66ddd5271f4bcfc.zip |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |