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.
This commit is contained in:
Manlio Perillo
2026-07-02 14:53:46 +02:00
parent a5ed7b636b
commit f6c3e4edc4
-6
View File
@@ -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);