This commit is contained in:
edschuy95 2026-01-20 20:50:37 -05:00
parent 5224137713
commit cb29928ba0

View file

@ -90,6 +90,10 @@ ANSI_ESCAPE_RE = re.compile(
# ===================== UTILITY FUNCTIONS ================= # ===================== UTILITY FUNCTIONS =================
def apply_backspaces(s): def apply_backspaces(s):
# Ensure we are working with str
if isinstance(s, bytes):
s = s.decode(errors="ignore")
buf = [] buf = []
for c in s: for c in s:
if c == "\x08": if c == "\x08":