mod: use unbuffered streaming writer for TUIs
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 15m36s

This commit is contained in:
2026-06-03 17:39:11 +02:00
parent 24a08e0e62
commit cb262aa51f
18 changed files with 131 additions and 116 deletions
+7
View File
@@ -80,6 +80,13 @@ pub fn main(init: std.process.Init) !void {
const io = init.io;
var app: App = .init(allocator, io, .{});
var stdout = std.Io.File.stdout();
// var stdout_buffer: [4096]u8 = undefined;
// var writer = stdout.writerStreaming(io, &stdout_buffer);
var writer = stdout.writerStreaming(io, &.{});
const w = &writer.interface;
defer w.flush() catch |err| log.err("Could not flush: {any}", .{err});
var renderer = zterm.Renderer.Buffered.init(allocator);
defer renderer.deinit();