aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-02-24 14:11:51 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-02-24 14:11:51 +1300
commitbcda65e45371b15fc57783c3d579492626d1d8ed (patch)
tree6388115833964d617c9047a5f662bc2b94f2ccf2
parent5810e7c0df3f33c20a34daa1bb6480f7bd762353 (diff)
downloadmitmproxy-bcda65e45371b15fc57783c3d579492626d1d8ed.tar.gz
mitmproxy-bcda65e45371b15fc57783c3d579492626d1d8ed.tar.bz2
mitmproxy-bcda65e45371b15fc57783c3d579492626d1d8ed.zip
Add mitmproxy version to status bar on Help screen.
Suggested by Jim Cheetham <jim.cheetham@otago.ac.nz>
-rw-r--r--libmproxy/console/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index 2f835189..2039d7b1 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -16,7 +16,7 @@
import mailcap, mimetypes, tempfile, os, subprocess, glob, time
import os.path, sys
import urwid
-from .. import controller, utils, flow
+from .. import controller, utils, flow, version
import flowlist, flowview, help, common, kveditor, palettes
EVENTLOG_SIZE = 500
@@ -315,7 +315,8 @@ class ConsoleMaster(flow.FlowMaster):
('heading_key', "?"), ":help ",
]
footer_text_help = [
- ('heading_key', "q"), ":back",
+ ("heading", 'mitmproxy v%s '%version.VERSION),
+ ('heading_key', "q"), ":back ",
]
footer_text_flowview = [
('heading_key', "?"), ":help ",