aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-07-16 11:48:16 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-07-16 11:48:16 +1200
commit17305643bc482c0b185eec5c64d506790cd26587 (patch)
tree5670bfcae0559ff77dc1a10d51d8f898d1350075
parent50c76ac4ff4dbc8442f60d5887ffbff5f96ecf20 (diff)
downloadmitmproxy-17305643bc482c0b185eec5c64d506790cd26587.tar.gz
mitmproxy-17305643bc482c0b185eec5c64d506790cd26587.tar.bz2
mitmproxy-17305643bc482c0b185eec5c64d506790cd26587.zip
console: don't let messages overwrite prompts
This renders mitmproxy unresponsive and is bad UX as well.
-rw-r--r--mitmproxy/console/statusbar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/console/statusbar.py b/mitmproxy/console/statusbar.py
index 040ea26d..47cc99f8 100644
--- a/mitmproxy/console/statusbar.py
+++ b/mitmproxy/console/statusbar.py
@@ -28,9 +28,10 @@ class ActionBar(urwid.WidgetWrap):
self.pathprompt = False
def sig_message(self, sender, message, expire=None):
+ if self.prompting:
+ return
w = urwid.Text(message)
self._w = w
- self.prompting = False
if expire:
def cb(*args):
if w == self._w: