From 4168f91d402e2fdb3c58b2de843dfed13c88c8ab Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 19 Aug 2019 21:16:47 +0200 Subject: csi: implement CSI ? 1007 h/l - alternateScroll When enabled, mouse scrolls in the alternate screen are converted to up/down key presses. --- csi.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'csi.c') 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"); -- cgit v1.3