authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-10 18:25:23-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-23 22:15:09-08:00
log7837d975dcaa17ff22f536607c4ff6db7b697b04
tree9eb40067acb66d67636395f32ffb805938e64841
parent95b0399d1bf7e12aefeba79652141d202f805fe4

std: save terminal escape stripping for later


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/Io/File/Writer.zig+2-2
......@@ -300,12 +300,12 @@ fn drainEscaping(w: *Writer, data: []const []const u8, splat: usize) Io.Writer.E
300300 const header = w.interface.buffered();
301301 if (findTerminalEscape(header)) |i| {
302302 _ = i;
303 @panic("TODO strip terminal escape sequence");
303 // TODO strip terminal escape sequences here
304304 }
305305 for (data) |d| {
306306 if (findTerminalEscape(d)) |i| {
307307 _ = i;
308 @panic("TODO strip terminal escape sequence");
308 // TODO strip terminal escape sequences here
309309 }
310310 }
311311 const n = io.vtable.fileWriteStreaming(io.userdata, w.file, header, data, splat) catch |err| {