From 2d0c4928eed28b04e45ca22e6ab0827161099cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 18 Nov 2019 11:31:05 +0100 Subject: [PATCH] csi: add debug logs for the various mouse reporting modes --- csi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csi.c b/csi.c index 1e8e3f68..0fadc268 100644 --- a/csi.c +++ b/csi.c @@ -855,11 +855,12 @@ csi_dispatch(struct terminal *term, uint8_t final) break; case 1005: - LOG_WARN("unimplemented: UTF-8 mouse"); + LOG_WARN("unimplemented: mouse reporting mode: UTF-8"); /* term->mouse_reporting = MOUSE_UTF8; */ break; case 1006: + LOG_DBG("mouse reporting mode: SGR"); term->mouse_reporting = MOUSE_SGR; break; @@ -868,6 +869,7 @@ csi_dispatch(struct terminal *term, uint8_t final) break; case 1015: + LOG_DBG("mouse reporting mode: urxvt"); term->mouse_reporting = MOUSE_URXVT; break; @@ -968,6 +970,7 @@ csi_dispatch(struct terminal *term, uint8_t final) case 1005: /* MOUSE_UTF8 */ case 1006: /* MOUSE_SGR */ case 1015: /* MOUSE_URXVT */ + LOG_DBG("mouse reporting mode: legacy"); term->mouse_reporting = MOUSE_NORMAL; break;