aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/build/mdgen
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/build/mdgen
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/build/mdgen')
-rw-r--r--vendor/libghostty-vt/src/build/mdgen/main_ghostty_1.zig7
-rw-r--r--vendor/libghostty-vt/src/build/mdgen/main_ghostty_5.zig7
2 files changed, 6 insertions, 8 deletions
diff --git a/vendor/libghostty-vt/src/build/mdgen/main_ghostty_1.zig b/vendor/libghostty-vt/src/build/mdgen/main_ghostty_1.zig
index 2bb413d9..e511768c 100644
--- a/vendor/libghostty-vt/src/build/mdgen/main_ghostty_1.zig
+++ b/vendor/libghostty-vt/src/build/mdgen/main_ghostty_1.zig
@@ -1,12 +1,11 @@
const std = @import("std");
const gen = @import("mdgen.zig");
-pub fn main() !void {
- var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
- const alloc = gpa.allocator();
+pub fn main(init: std.process.Init) !void {
+ const alloc = init.arena.allocator();
var buffer: [1024]u8 = undefined;
- var stdout_writer = std.fs.File.stdout().writer(&buffer);
+ var stdout_writer = std.Io.File.stdout().writer(init.io, &buffer);
const writer = &stdout_writer.interface;
try gen.substitute(alloc, @embedFile("ghostty_1_header.md"), writer);
try gen.genActions(writer);
diff --git a/vendor/libghostty-vt/src/build/mdgen/main_ghostty_5.zig b/vendor/libghostty-vt/src/build/mdgen/main_ghostty_5.zig
index 2123b0bc..4f7c4882 100644
--- a/vendor/libghostty-vt/src/build/mdgen/main_ghostty_5.zig
+++ b/vendor/libghostty-vt/src/build/mdgen/main_ghostty_5.zig
@@ -1,12 +1,11 @@
const std = @import("std");
const gen = @import("mdgen.zig");
-pub fn main() !void {
- var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
- const alloc = gpa.allocator();
+pub fn main(init: std.process.Init) !void {
+ const alloc = init.arena.allocator();
var buffer: [1024]u8 = undefined;
- var stdout_writer = std.fs.File.stdout().writer(&buffer);
+ var stdout_writer = std.Io.File.stdout().writer(init.io, &buffer);
const writer = &stdout_writer.interface;
try gen.substitute(alloc, @embedFile("ghostty_5_header.md"), writer);
try gen.genConfig(writer, false);