From 42d06a05c0c5d8c27f7740a6d664106e3d012027 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 2 Apr 2012 11:16:20 +1200 Subject: [PATCH] Add an option to allow clearing of display mode override. --- libmproxy/console/flowview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmproxy/console/flowview.py b/libmproxy/console/flowview.py index 63b4db36d..2d4b71af0 100644 --- a/libmproxy/console/flowview.py +++ b/libmproxy/console/flowview.py @@ -448,9 +448,11 @@ class FlowView(common.WWrap): ) key = None elif key == "m": + p = list(contentview.VIEW_PROMPT) + p.insert(0, ("clear", "c")) self.master.prompt_onekey( "Display mode", - contentview.VIEW_PROMPT, + p, self.change_this_display_mode ) key = None