Enable mouse conditionally
This commit is contained in:
parent
80cd43b3f3
commit
dec1686899
1
kls
1
kls
|
@ -211,6 +211,7 @@ def kubectl(command: str) -> list:
|
||||||
|
|
||||||
|
|
||||||
def enable_mouse_support():
|
def enable_mouse_support():
|
||||||
|
if MOUSE_ENABLED:
|
||||||
curses.mousemask(curses.REPORT_MOUSE_POSITION) # mouse tracking
|
curses.mousemask(curses.REPORT_MOUSE_POSITION) # mouse tracking
|
||||||
print('\033[?1003h') # enable mouse tracking with the XTERM API. That's the magic
|
print('\033[?1003h') # enable mouse tracking with the XTERM API. That's the magic
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue