From 1610828b8cefaee2588552578ba0eccf354e3c29 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 5 Jul 2019 15:13:06 +0200 Subject: vt: add support for mouse motion reports --- csi.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'csi.c') diff --git a/csi.c b/csi.c index 67d78720..cf586bd1 100644 --- a/csi.c +++ b/csi.c @@ -597,28 +597,26 @@ csi_dispatch(struct terminal *term, uint8_t final) break; case 1002: - LOG_WARN("unimplemented: report button and mouse motion"); - /* term->mouse_tracking = MOUSE_DRAG; */ + term->mouse_tracking = MOUSE_DRAG; break; case 1003: - LOG_WARN("unimplemented: report all mouse events"); - /* term->mouse_tracking = MOUSE_MOTION; */ + term->mouse_tracking = MOUSE_MOTION; break; case 1005: LOG_WARN("unimplemented: UTF-8 mouse"); - /* term->mouse_reporting = MOUSE_UTF8 */ + /* term->mouse_reporting = MOUSE_UTF8; */ break; case 1006: LOG_WARN("unimplemented: SGR mouse"); - /* term->mouse_reporting = MOUSE_SGR */ + term->mouse_reporting = MOUSE_SGR; break; case 1015: LOG_WARN("unimplemented: URXVT mosue"); - /* term->mouse_reporting = MOUSE_URXVT */ + /* term->mouse_reporting = MOUSE_URXVT; */ break; case 1049: -- cgit v1.3