pb icon indicating copy to clipboard operation
pb copied to clipboard

Progress Bars spam the terminal if the message is set too long

Open exKitsune opened this issue 4 years ago • 1 comments

Given a single progress bar,

If a message is set to a normal length it works as intended filename.mp4: 18.47 MB / 41.00 MB [===>----] 45.05 % 2.35 MB/s 10s

However if the message becomes way too long, the terminal will spam with something such as

[metadata] loooooooongfilename.mp4: 18.47 MB / 41.00 MB 45.05 % 2.35 MB/s 10s
[metadata] loooooooongfilename.mp4: 18.47 MB / 41.00 MB 45.06 % 2.35 MB/s 10s
[metadata] loooooooongfilename.mp4: 18.47 MB / 41.00 MB 45.07 % 2.35 MB/s 10s
[metadata] loooooooongfilename.mp4: 18.47 MB / 41.00 MB 45.08 % 2.35 MB/s 10s
[metadata] loooooooongfilename.mp4: 18.47 MB / 41.00 MB 45.09 % 2.35 MB/s 10s
[metadata] loooooooongfilename.mp4: 18.47 MB / 41.00 MB 45.10 % 2.35 MB/s 10s

The spam doesn't stop until the process is finished.

exKitsune avatar Apr 08 '20 02:04 exKitsune

can reproduce

kraktus avatar Apr 28 '22 12:04 kraktus