Skip to content

Commit 4e1f5fa

Browse files
committed
Tolerate BEL characters in DCS because they can be used in the tmux wrapper code. Issue 4592.
1 parent 5ac600a commit 4e1f5fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sources/VT100DCSParser.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ - (BOOL)dataLooksLikeBinaryGarbage {
375375
// it's not, add 10 and 13 to this character set.
376376
NSMutableCharacterSet *characterSet = [NSMutableCharacterSet characterSetWithRange:NSMakeRange(32, 127 - 32)];
377377
[characterSet addCharactersInRange:NSMakeRange(VT100CC_ESC, 1)];
378+
// Keep going at BEL because the tmux OSC wrapper DCS tmux; OSC with double-escapes ST
379+
// could end in a BEL.
380+
[characterSet addCharactersInRange:NSMakeRange(VT100CC_BEL, 1)];
378381
[characterSet invert];
379382
garbageCharacterSet = [characterSet retain];
380383
});

0 commit comments

Comments
 (0)