From 4f38b3a9c0dbbdf4bcd5e48386f3282263e2b5da Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 22 Feb 2012 17:17:13 +1300 Subject: Documentation and screenshots. --- libmproxy/console/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libmproxy/console/common.py') diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index fbeb83d7..d1c6303a 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -84,6 +84,8 @@ def fcol(s, attr): +REPLAY_SYMBOL = u"\u21ba" + def format_flow(f, focus, extended=False, padding=2): pile = [] @@ -98,7 +100,7 @@ def format_flow(f, focus, extended=False, padding=2): else: req.append(fcol(">>" if focus else " ", "focus")) if f.request.is_replay(): - req.append(fcol(u"\u267B", "replay")) + req.append(fcol(REPLAY_SYMBOL, "replay")) req.append(fcol(f.request.method, "method")) preamble = sum(i[1] for i in req) + len(req) -1 @@ -126,7 +128,7 @@ def format_flow(f, focus, extended=False, padding=2): if f.response: if f.response.is_replay(): - resp.append(fcol(u"\u267B", "replay")) + resp.append(fcol(REPLAY_SYMBOL, "replay")) if f.response.code in [200, 304]: resp.append(fcol(f.response.code, "goodcode")) else: -- cgit v1.2.3