MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / render_marker

Function render_marker

mitmproxy/tools/console/common.py:161–168  ·  view source on GitHub ↗
(marker: str)

Source from the content-addressed store, hash-verified

159
160
161def render_marker(marker: str) -> str:
162 rendered = emoji.emoji.get(marker, SYMBOL_MARK)
163
164 # The marker can only be one glyph. Some emoji that use zero-width joiners (ZWJ)
165 # will not be rendered as a single glyph and instead will show
166 # multiple glyphs. Just use the first glyph as a fallback.
167 # https://emojipedia.org/emoji-zwj-sequence/
168 return rendered[0]
169
170
171class TruncatedText(urwid.Widget):

Callers 2

test_markerFunction · 0.90
format_right_indicatorsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 1

test_markerFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…