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
This commit is contained in:
Tim Culverhouse
2023-09-25 13:00:59 -05:00
parent b67922c8ff
commit 3d5180a177

View File

@ -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,