]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_cb_prg: output "flying saucers" with leading carriage return
authorDaniel Stenberg <daniel@haxx.se>
Sat, 20 Jul 2024 21:21:16 +0000 (23:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 22 Jul 2024 15:33:18 +0000 (17:33 +0200)
commit8193ca59e1bf248fbfc4eaad0ecd785e958e16c1
tree95aead507c936357879bebe6b18d439e36df448b
parenteef17551ac83170f0a4a562e57ba2b28af0ff5bd
tool_cb_prg: output "flying saucers" with leading carriage return

Because that is how the progress-bar is output, so when the progress-bar
has been shown at least once and the information is reset, like for a
redirect, there might be a moment where the size goes from known to
unknown and then the flying saucerts are shown after a brief display of
the progress-bar.

It could previously cause accidental character leftovers on the right
side of the bar when using a narrow display.

Reported-by: Chris Webb
Fixes #14213
Closes #14246
src/tool_cb_prg.c