fix(lib): write progress bar cleanup ANSI sequences to stderr

This commit is contained in:
Erica Marigold 2025-02-05 13:31:52 +05:30
parent a6074b790f
commit 283db5df4a
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -78,7 +78,7 @@ function ProgressBar.stop(self: ProgressBarImpl): ()
-- Trigger upvalue, kill thread and clean progress bar remnant
self.finished = true
task.cancel(self.thread :: thread)
stdio.write("\x1b[2K\x1b[0G")
stdio.ewrite("\x1b[2K\x1b[0G")
end
function ProgressBar.nextStage(self: ProgressBarImpl): Result<nil, string>