From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- vendor/libghostty-vt/src/helpgen.zig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'vendor/libghostty-vt/src/helpgen.zig') diff --git a/vendor/libghostty-vt/src/helpgen.zig b/vendor/libghostty-vt/src/helpgen.zig index 49b5f443..e12cbda0 100644 --- a/vendor/libghostty-vt/src/helpgen.zig +++ b/vendor/libghostty-vt/src/helpgen.zig @@ -7,12 +7,9 @@ const Config = @import("config/Config.zig"); const Action = @import("cli/ghostty.zig").Action; const KeybindAction = @import("input/Binding.zig").Action; -pub fn main() !void { - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - const alloc = gpa.allocator(); - +pub fn main(init: std.process.Init) !void { var buf: [4096]u8 = undefined; - var stdout = std.fs.File.stdout().writerStreaming(&buf); + var stdout = std.Io.File.stdout().writerStreaming(init.io, &buf); const writer = &stdout.interface; try writer.writeAll( \\// THIS FILE IS AUTO GENERATED @@ -20,6 +17,7 @@ pub fn main() !void { \\ ); + const alloc = init.arena.allocator(); try genConfig(alloc, writer); try genActions(alloc, writer); try genKeybindActions(alloc, writer); -- cgit v1.2.3