From e3f28e1c06093147660e2857adce24b441d6530f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 8 Feb 2012 21:47:39 +1300 Subject: Move to context-dependent help model. The all-in-one page was just getting too unwieldy. --- libmproxy/console/connlist.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libmproxy/console/connlist.py') diff --git a/libmproxy/console/connlist.py b/libmproxy/console/connlist.py index 319963e8..1d34fba9 100644 --- a/libmproxy/console/connlist.py +++ b/libmproxy/console/connlist.py @@ -1,6 +1,21 @@ import urwid import common +def _mkhelp(): + text = [] + keys = [ + ("C", "clear connection list or eventlog"), + ("d", "delete connection from view"), + ("v", "toggle eventlog"), + ("X", "kill and delete connection, even if it's mid-intercept"), + ("tab", "tab between eventlog and connection list"), + ("enter", "view connection"), + ] + text.extend(common.format_keyvals(keys, key="key", val="text", indent=4)) + return text +help_context = _mkhelp() + + class EventListBox(urwid.ListBox): def __init__(self, master): self.master = master -- cgit v1.2.3