From 3ae2a3e1fa94e6e8d0856ee6fe22b1e47590ad04 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 24 Jun 2023 11:11:08 -0700 Subject: [PATCH] ghostty encoding test needs more buffer --- src/terminfo/ghostty.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 05316b868..79c20680d 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -4,8 +4,15 @@ const Source = @import("Source.zig"); /// Ghostty's terminfo entry. pub const ghostty: Source = .{ .names = &.{ + // The preferred name "ghostty", + + // We support the "xterm-" prefix because some poorly behaved programs + // use this to detect if the terminal supports 256 colors and other + // features. "xterm-ghostty", + + // Our "formal" name "Ghostty", }, @@ -320,7 +327,7 @@ pub const ghostty: Source = .{ test "encode" { // Encode - var buf: [1024]u8 = undefined; + var buf: [4096]u8 = undefined; var buf_stream = std.io.fixedBufferStream(&buf); try ghostty.encode(buf_stream.writer()); try std.testing.expect(buf_stream.getWritten().len > 0);