From 5999214c242d9103cfc68fc3102af1af47e6c9fd Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Thu, 30 Nov 2023 11:55:50 -0600 Subject: [PATCH] fix(termkey): accept BEL (0x07) as OSC terminator --- src/termkey/driver-csi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/termkey/driver-csi.c b/src/termkey/driver-csi.c index f179e3c9fa..86b59ac203 100644 --- a/src/termkey/driver-csi.c +++ b/src/termkey/driver-csi.c @@ -653,6 +653,8 @@ static TermKeyResult peekkey_ctrlstring(TermKey *tk, TermKeyCsi *csi, size_t int size_t str_end = introlen; while(str_end < tk->buffcount) { + if(CHARAT(str_end) == 0x07) // BEL + break; if(CHARAT(str_end) == 0x9c) // ST break; if(CHARAT(str_end) == 0x1b &&