Skip to content

Commit

Permalink
Tolerate BEL characters in DCS because they can be used in the tmux w…
Browse files Browse the repository at this point in the history
…rapper code. Issue 4592.
  • Loading branch information
gnachman committed May 3, 2016
1 parent 5ac600a commit 4e1f5fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/VT100DCSParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ - (BOOL)dataLooksLikeBinaryGarbage {
// it's not, add 10 and 13 to this character set.
NSMutableCharacterSet *characterSet = [NSMutableCharacterSet characterSetWithRange:NSMakeRange(32, 127 - 32)];
[characterSet addCharactersInRange:NSMakeRange(VT100CC_ESC, 1)];
// Keep going at BEL because the tmux OSC wrapper DCS tmux; OSC with double-escapes ST
// could end in a BEL.
[characterSet addCharactersInRange:NSMakeRange(VT100CC_BEL, 1)];
[characterSet invert];
garbageCharacterSet = [characterSet retain];
});
Expand Down

0 comments on commit 4e1f5fa

Please sign in to comment.