From bcda65e45371b15fc57783c3d579492626d1d8ed Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Feb 2012 14:11:51 +1300 Subject: Add mitmproxy version to status bar on Help screen. Suggested by Jim Cheetham --- libmproxy/console/__init__.py | 5 +++-- 1 file 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 ", -- cgit v1.2.3