mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-21 18:02:27 +00:00
Do not enable mouse tracking in read-only screenshot mode
When resizing, need to only capture mouse if we are actually set to handle them.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/libexec/platform-python
|
||||
#!/usr/bin/python3
|
||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||
|
||||
# Copyright 2015 Lenovo
|
||||
@@ -1033,9 +1033,10 @@ def do_resize(nodelist, winch=False):
|
||||
# on a window resize, clear the old stuff
|
||||
current_cursor = (1, 1)
|
||||
sys.stdout.write('\x1bc')
|
||||
sys.stdout.write('\x1b[?1000h') # Enable mouse click tracking
|
||||
sys.stdout.write('\x1b[?1003h') # Enable mouse movement tracking
|
||||
sys.stdout.write('\x1b[?1006h') # Enable SGR extended mode for mouse
|
||||
if console_direct_mode:
|
||||
sys.stdout.write('\x1b[?1000h') # Enable mouse click tracking
|
||||
sys.stdout.write('\x1b[?1003h') # Enable mouse movement tracking
|
||||
sys.stdout.write('\x1b[?1006h') # Enable SGR extended mode for mouse
|
||||
global numrows
|
||||
global cwidth
|
||||
global cheight
|
||||
|
||||
Reference in New Issue
Block a user