aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/main_build_data.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/main_build_data.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/main_build_data.zig')
-rw-r--r--vendor/libghostty-vt/src/main_build_data.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/libghostty-vt/src/main_build_data.zig b/vendor/libghostty-vt/src/main_build_data.zig
index 4e55f449..b441e377 100644
--- a/vendor/libghostty-vt/src/main_build_data.zig
+++ b/vendor/libghostty-vt/src/main_build_data.zig
@@ -27,14 +27,14 @@ pub const Action = enum {
terminfo,
};
-pub fn main() !void {
+pub fn main(init: std.process.Init) !void {
const alloc = std.heap.c_allocator;
- const action_ = try cli.action.detectArgs(Action, alloc);
+ const action_ = try cli.action.detectArgs(Action, alloc, init.minimal.args);
const action = action_ orelse return error.NoAction;
// Our output always goes to stdout.
var buffer: [1024]u8 = undefined;
- var stdout_writer = std.fs.File.stdout().writerStreaming(&buffer);
+ var stdout_writer = std.Io.File.stdout().writerStreaming(init.io, &buffer);
const writer = &stdout_writer.interface;
switch (action) {
.bash => try writer.writeAll(@import("extra/bash.zig").completions),