diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/cli/list_actions.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/cli/list_actions.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/cli/list_actions.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/libghostty-vt/src/cli/list_actions.zig b/vendor/libghostty-vt/src/cli/list_actions.zig index aaef1195..ce4af5c4 100644 --- a/vendor/libghostty-vt/src/cli/list_actions.zig +++ b/vendor/libghostty-vt/src/cli/list_actions.zig @@ -3,6 +3,7 @@ const args = @import("args.zig"); const Action = @import("ghostty.zig").Action; const Allocator = std.mem.Allocator; const helpgen_actions = @import("../input/helpgen_actions.zig"); +const global = @import("../global.zig"); pub const Options = struct { /// If `true`, print out documentation about the action associated with the @@ -32,14 +33,14 @@ pub fn run(alloc: Allocator) !u8 { defer opts.deinit(); { - var iter = try args.argsIterator(alloc); + var iter = try args.argsIterator(alloc, global.args()); defer iter.deinit(); try args.parse(Options, alloc, &opts, &iter); } - var stdout: std.fs.File = .stdout(); + var stdout: std.Io.File = .stdout(); var buffer: [4096]u8 = undefined; - var stdout_writer = stdout.writer(&buffer); + var stdout_writer = stdout.writer(global.io(), &buffer); try helpgen_actions.generate( &stdout_writer.interface, .plaintext, |
