From f79d9ba3a74ffed7124ba26eb96cc38c8e851b61 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 17 Mar 2023 14:18:34 -0700 Subject: [PATCH] fix regression where BEL is accepted to end OSC sequences --- src/terminal/parse_table.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/terminal/parse_table.zig b/src/terminal/parse_table.zig index 4a191e92d..0ada758f2 100644 --- a/src/terminal/parse_table.zig +++ b/src/terminal/parse_table.zig @@ -342,9 +342,15 @@ fn genTable() Table { // events single(&result, 0x19, source, source, .ignore); - range(&result, 0, 0x17, source, source, .ignore); + range(&result, 0, 0x06, source, source, .ignore); + range(&result, 0x08, 0x17, source, source, .ignore); range(&result, 0x1C, 0x1F, source, source, .ignore); range(&result, 0x20, 0x7F, source, source, .osc_put); + + // XTerm accepts either BEL or ST for terminating OSC + // sequences, and when returning information, uses the same + // terminator used in a query. + single(&result, 0x07, source, .ground, .none); } // Create our immutable version