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/unicode/symbols_uucode.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/unicode/symbols_uucode.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/unicode/symbols_uucode.zig | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vendor/libghostty-vt/src/unicode/symbols_uucode.zig b/vendor/libghostty-vt/src/unicode/symbols_uucode.zig index 794ca5ba..94344388 100644 --- a/vendor/libghostty-vt/src/unicode/symbols_uucode.zig +++ b/vendor/libghostty-vt/src/unicode/symbols_uucode.zig @@ -3,10 +3,8 @@ const uucode = @import("uucode"); const lut = @import("lut.zig"); /// Runnable binary to generate the lookup tables and output to stdout. -pub fn main() !void { - var arena_state = std.heap.ArenaAllocator.init(std.heap.page_allocator); - defer arena_state.deinit(); - const alloc = arena_state.allocator(); +pub fn main(init: std.process.Init) !void { + const alloc = init.arena.allocator(); const gen: lut.Generator( bool, @@ -32,7 +30,7 @@ pub fn main() !void { defer alloc.free(t.stage3); var buf: [4096]u8 = undefined; - var stdout = std.fs.File.stdout().writer(&buf); + var stdout = std.Io.File.stdout().writer(init.io, &buf); try t.writeZig(&stdout.interface); // Use flush instead of end because stdout is a pipe when captured by // the build system, and pipes cannot be truncated (Windows returns |
