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/cli/help.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vendor/libghostty-vt/src/cli/help.zig') diff --git a/vendor/libghostty-vt/src/cli/help.zig b/vendor/libghostty-vt/src/cli/help.zig index a2b4dde8..ee67483a 100644 --- a/vendor/libghostty-vt/src/cli/help.zig +++ b/vendor/libghostty-vt/src/cli/help.zig @@ -2,6 +2,7 @@ const std = @import("std"); const Allocator = std.mem.Allocator; const args = @import("args.zig"); const Action = @import("ghostty.zig").Action; +const global = @import("../global.zig"); // Note that this options struct doesn't implement the `help` decl like other // actions. That is because the help command is special and wants to handle its @@ -16,7 +17,7 @@ pub const Options = struct { }; /// The `help` command shows general help about Ghostty. Recognized as either -/// `-h, `--help`, or like other actions `+help`. +/// `-h`, `--help`, or like other actions `+help`. /// /// You can also specify `--help` or `-h` along with any action such as /// `+list-themes` to see help for a specific action. @@ -25,13 +26,13 @@ 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 buffer: [2048]u8 = undefined; - var stdout_writer = std.fs.File.stdout().writer(&buffer); + var stdout_writer = std.Io.File.stdout().writer(global.io(), &buffer); const stdout = &stdout_writer.interface; try stdout.writeAll( \\Usage: ghostty [+action] [options] -- cgit v1.2.3