MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / escape_ansi

Function escape_ansi

solidui/kernel_program/utils.py:28–30  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

26
27
28def escape_ansi(line):
29 ansi_escape = re.compile(r"(?:\x1B[@-_]|[\x80-\x9F])[0-?]*[ -/]*[@-~]")
30 return ansi_escape.sub("", line)
31
32
33def send_json(messaging, message, identity):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected