aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-19 19:16:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-19 19:16:47 +0000
commit4168f91d402e2fdb3c58b2de843dfed13c88c8ab (patch)
treea72f660314ac9f872d11e019e865c95aee14482d /csi.c
parentfont: tentative support for BGR, V-RGB and V-BGR (diff)
csi: implement CSI ? 1007 h/l - alternateScroll
When enabled, mouse scrolls in the alternate screen are converted to up/down key presses.
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index 51eb22cb..5adb5001 100644
--- a/csi.c
+++ b/csi.c
@@ -713,6 +713,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
term->mouse_reporting = MOUSE_SGR;
break;
+ case 1007:
+ term->alt_scrolling = true;
+ break;
+
case 1015:
term->mouse_reporting = MOUSE_URXVT;
break;
@@ -802,6 +806,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
term->focus_events = false;
break;
+ case 1007:
+ term->alt_scrolling = false;
+ break;
+
case 1036:
/* metaSendsEscape - we always send escape */
LOG_WARN("unimplemented: meta does *not* send escape");