From 3d5180a177b2290e5e2523e94551dad6252c9952 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 25 Sep 2023 13:00:59 -0500 Subject: [PATCH] terminal: use ST instead of BEL terminator for XTVERSION The XTVERSION response should use a string terminator instead of a bell. Most terminals can handle the bell, however specifically tmux does not like it. Fixes: #534 --- src/termio/Exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 096e4918b..2182ce93d 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -1697,7 +1697,7 @@ const StreamHandler = struct { var buf: [288]u8 = undefined; const resp = try std.fmt.bufPrint( &buf, - "\x1BP>|{s} {s}\x07", + "\x1BP>|{s} {s}\x1B\\", .{ "ghostty", build_config.version_string,