aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/helpgen.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/helpgen.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/helpgen.zig')
-rw-r--r--vendor/libghostty-vt/src/helpgen.zig8
1 files changed, 3 insertions, 5 deletions
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);