From f6c3e4edc4b612d04e8da5ab6e74f0193f4f3e33 Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Thu, 2 Jul 2026 14:53:46 +0200 Subject: [PATCH] rivendell: Remove the resetLine function This was necessary in the past (commit 30db9d, 2023-04-17). The new Progress.zig and, probably, the fact that exercises run on a separate executable solved the problem. --- rivendell/elrond.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rivendell/elrond.zig b/rivendell/elrond.zig index f9ca0c4..b767181 100644 --- a/rivendell/elrond.zig +++ b/rivendell/elrond.zig @@ -359,7 +359,6 @@ fn runExe(ctx: Context, ex: Exercise) !void { return err; }; - resetLine(); print("Checking {s}...\n", .{ex.main_file}); return checkOutput(io, arena, ex, result); @@ -392,7 +391,6 @@ fn runTest(ctx: Context, ex: Exercise) !void { return err; }; - resetLine(); print("Checking {s}...\n", .{ex.main_file}); return checkTest(ex, result); @@ -486,10 +484,6 @@ fn help(ex: Exercise, mode: Mode) void { }); } -fn resetLine() void { - if (stderr_term_mode == .escape_codes) print("{s}", .{"\x1b[2K\r"}); -} - // Removes trailing whitespace per line and any trailing LF at the end. fn trimLines(arena: std.mem.Allocator, buf: []const u8) ![]const u8 { var list = try std.ArrayList(u8).initCapacity(arena, buf.len);