diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-03 12:20:05 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-03 12:20:05 +1300 |
commit | f6c8654f08032d52135fa70eb12e78b895ca8ebb (patch) | |
tree | 5d38265721e62e17c078ca002c2e6949da3fd882 | |
parent | d8cb826361c2487ba7feb0c09669d6518d51c987 (diff) | |
download | mitmproxy-f6c8654f08032d52135fa70eb12e78b895ca8ebb.tar.gz mitmproxy-f6c8654f08032d52135fa70eb12e78b895ca8ebb.tar.bz2 mitmproxy-f6c8654f08032d52135fa70eb12e78b895ca8ebb.zip |
"Q" quits without confirmation prompt.
-rw-r--r-- | libmproxy/console.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py index 03fde9f5..19a5961e 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -944,6 +944,7 @@ class ConsoleMaster(controller.Master): ("l", "set limit filter pattern"), ("L", "load saved flows"), ("q", "quit / return to connection list"), + ("Q", "quit without confirm prompt"), ("r", "replay request"), ("R", "revert changes to request"), ("S", "save all flows matching current limit"), @@ -1158,6 +1159,8 @@ class ConsoleMaster(controller.Master): elif k == "k": k = "up" elif k in ("q", "Q"): + if k == "Q": + raise Stop if self.viewstate == VIEW_FLOW: self.view_connlist() elif self.viewstate == VIEW_HELP: |