mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-12 07:08:55 +00:00
Add an index counter to status bar.
This commit is contained in:
parent
5553eb6371
commit
8fa96d1f3f
@ -191,9 +191,17 @@ class StatusBar(common.WWrap):
|
|||||||
if self.expire and time.time() > self.expire:
|
if self.expire and time.time() > self.expire:
|
||||||
self.message("")
|
self.message("")
|
||||||
|
|
||||||
t = [
|
fc = self.master.state.flow_count()
|
||||||
('heading', ("[%s]"%self.master.state.flow_count()).ljust(7)),
|
if self.master.currentflow:
|
||||||
|
idx = self.master.state.view.index(self.master.currentflow) + 1
|
||||||
|
t = [
|
||||||
|
('heading', ("[%s/%s]"%(idx, fc)).ljust(9))
|
||||||
]
|
]
|
||||||
|
else:
|
||||||
|
t = [
|
||||||
|
('heading', ("[%s]"%fc).ljust(9))
|
||||||
|
]
|
||||||
|
|
||||||
if self.master.server.bound:
|
if self.master.server.bound:
|
||||||
boundaddr = "[%s:%s]"%(self.master.server.address or "*", self.master.server.port)
|
boundaddr = "[%s:%s]"%(self.master.server.address or "*", self.master.server.port)
|
||||||
else:
|
else:
|
||||||
|
@ -95,7 +95,6 @@ class HelpView(urwid.ListBox):
|
|||||||
common.highlight_key("xml", "x") +
|
common.highlight_key("xml", "x") +
|
||||||
[("text", ": XML")]
|
[("text", ": XML")]
|
||||||
),
|
),
|
||||||
|
|
||||||
("o", "toggle options:"),
|
("o", "toggle options:"),
|
||||||
(None,
|
(None,
|
||||||
common.highlight_key("anticache", "a") +
|
common.highlight_key("anticache", "a") +
|
||||||
|
Loading…
Reference in New Issue
Block a user