mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
parent
5e5e73001f
commit
62330e4b0f
@ -416,6 +416,7 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
|
||||
def run(self):
|
||||
self.ui = urwid.raw_display.Screen()
|
||||
self.ui.set_mouse_tracking()
|
||||
self.ui.set_terminal_properties(256)
|
||||
self.set_palette(self.palette)
|
||||
self.loop = urwid.MainLoop(
|
||||
|
@ -17,6 +17,16 @@ class Window(urwid.Frame):
|
||||
def sig_focus(self, sender, section):
|
||||
self.focus_position = section
|
||||
|
||||
def mouse_event(self, *args, **kwargs):
|
||||
# args: (size, event, button, col, row)
|
||||
k = super(self.__class__, self).mouse_event(*args, **kwargs)
|
||||
if args[1] == "mouse drag":
|
||||
signals.status_message.send(
|
||||
message = "Hold down alt or ctrl to select text.",
|
||||
expire = 1
|
||||
)
|
||||
return False
|
||||
|
||||
def keypress(self, size, k):
|
||||
k = super(self.__class__, self).keypress(size, k)
|
||||
if k == "?":
|
||||
|
Loading…
Reference in New Issue
Block a user