mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
ghostty encoding test needs more buffer
This commit is contained in:
@ -4,8 +4,15 @@ const Source = @import("Source.zig");
|
|||||||
/// Ghostty's terminfo entry.
|
/// Ghostty's terminfo entry.
|
||||||
pub const ghostty: Source = .{
|
pub const ghostty: Source = .{
|
||||||
.names = &.{
|
.names = &.{
|
||||||
|
// The preferred name
|
||||||
"ghostty",
|
"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",
|
"xterm-ghostty",
|
||||||
|
|
||||||
|
// Our "formal" name
|
||||||
"Ghostty",
|
"Ghostty",
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -320,7 +327,7 @@ pub const ghostty: Source = .{
|
|||||||
|
|
||||||
test "encode" {
|
test "encode" {
|
||||||
// Encode
|
// Encode
|
||||||
var buf: [1024]u8 = undefined;
|
var buf: [4096]u8 = undefined;
|
||||||
var buf_stream = std.io.fixedBufferStream(&buf);
|
var buf_stream = std.io.fixedBufferStream(&buf);
|
||||||
try ghostty.encode(buf_stream.writer());
|
try ghostty.encode(buf_stream.writer());
|
||||||
try std.testing.expect(buf_stream.getWritten().len > 0);
|
try std.testing.expect(buf_stream.getWritten().len > 0);
|
||||||
|
Reference in New Issue
Block a user