Skip to content

Commit 35ea292

Browse files
committed
fix(console-monitor): prevent unnecessary escape sequence handling when not in frame
Signed-off-by: cliffchen <t-cliffchen+github@microsoft.com>
1 parent 3a669a5 commit 35ea292

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/console-monitor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ class FrameFilter:
288288
elif byte == SpecialChar.DLE:
289289

290290
self._buffer.append(byte)
291-
self._escape_next = True
291+
if self.in_frame:
292+
self._escape_next = True
292293

293294
elif byte == SpecialChar.SOF:
294295

0 commit comments

Comments
 (0)