Enable mouse conditionally

This commit is contained in:
Digital Studium 2024-08-02 13:29:29 +03:00
parent 80cd43b3f3
commit dec1686899
1 changed files with 3 additions and 2 deletions

5
kls
View File

@ -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():