From f6c8654f08032d52135fa70eb12e78b895ca8ebb Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 3 Feb 2011 12:20:05 +1300 Subject: "Q" quits without confirmation prompt. --- libmproxy/console.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmproxy') 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: -- cgit v1.2.3