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

1
kls
View File

@ -211,6 +211,7 @@ def kubectl(command: str) -> list:
def enable_mouse_support():
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