fiso64 / slsk-batchdl

A batch downloader for Soulseek
GNU General Public License v3.0
216 stars 16 forks source link

Printed output broken in windows terminal and git bash (and possibly others) #55

Open fiso64 opened 1 month ago

fiso64 commented 1 month ago

Progress bars and percentage lines are often not updated and sometimes overlap in windows terminal once the last line is reached and the view needs to be scrolled. Pressing enter until the view in windows terminal starts to scroll, then starting sldl with a normal download with multiple tracks gives broken output.

In git bash, nothing is displayed at all.

The developer of the progress bar library used by sldl has no plans to fix it: https://github.com/goblinfactory/progress-bar/issues/3

I was unable to create a suitable alternative myself, nor find any library that

  1. Supports multiple bars at once and is thread-safe
  2. Supports continuously adding new bars
  3. Is reliable (e.g: does not misbehave when a bar is scrolled out of view)
  4. Works in all common terminals on both linux and windows