From c985e2219663f6bf9159198aaf8eacd02e4ac674 Mon Sep 17 00:00:00 2001 From: Rob Wills Date: Wed, 1 Aug 2012 23:57:56 -0700 Subject: Press "F" to Follow Following of the flow list - ConsoleState now has a follow_focus property -- when True it will cause focus to follow added flows - ConsoleMaster implements toggle_follow_flows() -- when enabling follow, also jumps to most recent flow - StatusBar reports follow_focus state -- adds "following" to option list when true - Added "F" to FlowList keys -- implementation requests ConsoleMaster to toggle_follow_flows() --- libmproxy/console/flowlist.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmproxy/console/flowlist.py') diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py index 71214e5e..293b1eae 100644 --- a/libmproxy/console/flowlist.py +++ b/libmproxy/console/flowlist.py @@ -25,6 +25,7 @@ def _mkhelp(): ("d", "delete flow"), ("D", "duplicate flow"), ("e", "toggle eventlog"), + ("F", "toggle follow flow list"), ("l", "set limit filter pattern"), ("L", "load saved flows"), ("r", "replay request"), @@ -225,6 +226,8 @@ class FlowListBox(urwid.ListBox): self.master.state.last_saveload, self.master.load_flows_callback ) + elif key == "F": + self.master.toggle_follow_flows() elif key == "W": if self.master.stream: self.master.stop_stream() -- cgit v1.2.3