Skip to content

Commit acdeb6d

Browse files
committed
fix: artifact 's' left on progress bar due to not clearing properly
1 parent d2fdc22 commit acdeb6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/install.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub fn download_progress_bar(dlnow: *std.atomic.Value(f64), tarball_size: f64, t
152152
}
153153
bars = newbars;
154154
const speed = downloaded / 1024 / @as(f64, @floatFromInt(timer.read() / time.ns_per_s));
155-
try stderr_writer.print("\r\t\x1b[33m{s}\x1b[0m{s} {d}% {d:.1}KB/s", .{ progress_bar[0 .. newbars * 3], progress_bar[newbars * 3 ..], pcnt_complete, speed });
155+
try stderr_writer.print("\x1b[G\x1b[0K\t\x1b[33m{s}\x1b[0m{s} {d}% {d:.1}KB/s", .{ progress_bar[0 .. newbars * 3], progress_bar[newbars * 3 ..], pcnt_complete, speed });
156156

157157
if (downloaded + tarball_size == total_size) break;
158158

0 commit comments

Comments
 (0)