Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit dcb198a

Browse files
authored
Accept BEL (0x07) as OSC terminator (#4)
1 parent bf54461 commit dcb198a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver-csi.c

+2
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ static TermKeyResult peekkey_ctrlstring(TermKey *tk, TermKeyCsi *csi, size_t int
655655
size_t str_end = introlen;
656656

657657
while(str_end < tk->buffcount) {
658+
if(CHARAT(str_end) == 0x07) // BEL
659+
break;
658660
if(CHARAT(str_end) == 0x9c) // ST
659661
break;
660662
if(CHARAT(str_end) == 0x1b &&

0 commit comments

Comments
 (0)