diff options
author | Nikita Stupin <18281368+nikitastupin@users.noreply.github.com> | 2020-05-02 12:38:01 +0300 |
---|---|---|
committer | Nikita Stupin <18281368+nikitastupin@users.noreply.github.com> | 2020-05-02 12:38:01 +0300 |
commit | 2927d66d01f3a8798aeb20b7e4a238a5be98aff7 (patch) | |
tree | 0b01f86da94c07737e51b7c4d27035d928ece15b | |
parent | 7aaa6217839c5351e508caa73adf76e1b1a3b678 (diff) | |
download | mitmproxy-2927d66d01f3a8798aeb20b7e4a238a5be98aff7.tar.gz mitmproxy-2927d66d01f3a8798aeb20b7e4a238a5be98aff7.tar.bz2 mitmproxy-2927d66d01f3a8798aeb20b7e4a238a5be98aff7.zip |
Change arrow style
-rw-r--r-- | mitmproxy/tools/console/common.py | 4 | ||||
-rw-r--r-- | mitmproxy/tools/console/flowview.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mitmproxy/tools/console/common.py b/mitmproxy/tools/console/common.py index cba3a355..46800fdd 100644 --- a/mitmproxy/tools/console/common.py +++ b/mitmproxy/tools/console/common.py @@ -104,6 +104,8 @@ if urwid.util.detected_encoding: SYMBOL_UP = u"\u21E7" SYMBOL_DOWN = u"\u21E9" SYMBOL_ELLIPSIS = u"\u2026" + SYMBOL_FROM_CLIENT = u"\u21d2" + SYMBOL_TO_CLIENT = u"\u21d0" else: SYMBOL_REPLAY = u"[r]" SYMBOL_RETURN = u"<-" @@ -111,6 +113,8 @@ else: SYMBOL_UP = "^" SYMBOL_DOWN = " " SYMBOL_ELLIPSIS = "~" + SYMBOL_FROM_CLIENT = u"->" + SYMBOL_TO_CLIENT = u"<-" SCHEME_STYLES = { 'http': 'scheme_http', diff --git a/mitmproxy/tools/console/flowview.py b/mitmproxy/tools/console/flowview.py index 7c6258cf..bed0a290 100644 --- a/mitmproxy/tools/console/flowview.py +++ b/mitmproxy/tools/console/flowview.py @@ -144,9 +144,9 @@ class FlowDetails(tabs.Tabs): for line in lines: if message["from_client"]: - line.insert(0, "--> ") + line.insert(0, f"{common.SYMBOL_FROM_CLIENT} ") else: - line.insert(0, "<-- ") + line.insert(0, f"{common.SYMBOL_TO_CLIENT} ") widget_lines.append(urwid.Text(line)) |