Zig 0.16: fixedBufferStream -> Io.Writer.fixed

This commit is contained in:
LN Liberda 2026-05-23 00:57:26 +02:00
parent 22c3af68ff
commit 7ab74ee9fa

View file

@ -300,8 +300,7 @@ fn drawConsole() void {
};
var buf: [4096]u8 = undefined;
var strm = std.io.fixedBufferStream(buf[0..]);
var wr = strm.writer();
var wr = std.Io.Writer.fixed(&buf);
while (ansi and st.lines_written > 0) {
wr.writeAll("\x1b[1F\x1b[2K") catch {};
st.lines_written -= 1;
@ -337,7 +336,7 @@ fn drawConsole() void {
}
}
stderr.writeAll(strm.getWritten()) catch {};
stderr.writeStreamingAll(main.io, wr.buffered()) catch {};
}