aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/flowlist.py
diff options
context:
space:
mode:
authorRob Wills <robwills@apple.com>2012-08-01 23:57:56 -0700
committerRob Wills <robwills@apple.com>2012-08-01 23:57:56 -0700
commitc985e2219663f6bf9159198aaf8eacd02e4ac674 (patch)
tree5c907e0b562cf5c41bd34089ef793afbacc86ef3 /libmproxy/console/flowlist.py
parent87d05a95ffec6ec99c8f6401feb847fcf516353e (diff)
downloadmitmproxy-c985e2219663f6bf9159198aaf8eacd02e4ac674.tar.gz
mitmproxy-c985e2219663f6bf9159198aaf8eacd02e4ac674.tar.bz2
mitmproxy-c985e2219663f6bf9159198aaf8eacd02e4ac674.zip
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()
Diffstat (limited to 'libmproxy/console/flowlist.py')
-rw-r--r--libmproxy/console/flowlist.py3
1 files changed, 3 insertions, 0 deletions
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()