From dec16868999796581c082e735b62c7aabe0b6d3a Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Fri, 2 Aug 2024 13:29:29 +0300 Subject: [PATCH] Enable mouse conditionally --- kls | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kls b/kls index 175fd40..a0f015a 100755 --- a/kls +++ b/kls @@ -211,8 +211,9 @@ def kubectl(command: str) -> list: def enable_mouse_support(): - curses.mousemask(curses.REPORT_MOUSE_POSITION) # mouse tracking - print('\033[?1003h') # enable mouse tracking with the XTERM API. That's the magic + if MOUSE_ENABLED: + curses.mousemask(curses.REPORT_MOUSE_POSITION) # mouse tracking + print('\033[?1003h') # enable mouse tracking with the XTERM API. That's the magic def init_menus():