2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 02:22:31 +00:00

Skip the '[' when evaluating partial ESC for terminator

This commit is contained in:
Jarrod Johnson
2025-10-06 17:34:17 -04:00
parent f34395648e
commit be2ae57a38

View File

@@ -1030,7 +1030,7 @@ def consume_termdata(fh, bufferonly=False):
# defer any partial ansi escape sequence for a later pass
escidx = segment.rfind('\x1b[')
if escidx >= 0:
for chr in segment[escidx + 1:]:
for chr in segment[escidx + 2:]:
if 0x40 <= ord(chr) <= 0x7e:
break
else: