Skip to content

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

Closed

Description

@fiso64

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: goblinfactory/progress-bar#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

Activity

  1. changed the title [-]Progress bar output broken in windows terminal and git bash[/-] [+]Progress bar output broken in windows terminal and git bash (and possibly others)[/+] on Aug 30, 2024
  2. changed the title [-]Progress bar output broken in windows terminal and git bash (and possibly others)[/-] [+]Printed output broken in windows terminal and git bash (and possibly others)[/+] on Sep 2, 2024
  3. pinned this issue on Oct 19, 2024
  4. unpinned this issue on Oct 19, 2024
  5. goblinfactory commented on Nov 6, 2024

    @goblinfactory

    hi @fiso64
    Just a quick update; it's true that I have no plans to update the goblinfactory/progress-bar library; however I do still want to work on goblinfactory/konsole which includes a more stable progressBar, that works well in the latest alpha package, 7.0.0.7-alpha, however, not one that scrolls on non windows machines sadly. I'm working on quite a radical update to Konsole that will fix that problem which involves bringing out a whole high speed cross platform console writer, but have no timeline for a release because while Konsole has a lot of downloads and users, I've had very little 1 on 1 engagement or feedback directly with any users, meaning that there's no reason to put lots of effort into the project apart from the personal satisfaction of a job well done, and fixing a glaringly large hole in the .net ecosystem.

    I'm updating the licence for Goblinfactory.Konsole (which has an improved progress bar) package for For version 7 and 8; but will be requiring that devs that use it must connect with me on Linkedin, mentioning Konsole when connecting, https://www.linkedin.com/in/goblinfactory/, so that I can know a little about, and connect with my userbase to help build a better product.

  6. goblinfactory commented on Nov 6, 2024

    @goblinfactory

    @fiso64 if you switch to goblinfactory.konsole, version 7.0.0.7-alpha it's 100% compatible with the other progress bar, and will immediately fix any progress-bar issues on Windows.

  7. fiso64 commented on Dec 15, 2024

    @fiso64
    OwnerAuthor

    Thanks for letting me know @goblinfactory. Unfortunately I won't be able to discuss this on LinkedIn as I don't have an account.

  8. fiso64 commented on Mar 14, 2025

    @fiso64
    OwnerAuthor

    Spectre.Console looks promising, but sadly its progress bar is not yet usable.

    We need to print status messages and errors interspersed with many active progress bars. When using Spectre Console's Progress , it's required to use their AnsiConsole.WriteLine instead of the normal Console.WriteLine. This function writes the line at the top of the console. There is a bug, where if the number of progress bars exceeds the terminal height, then the printed text is not visible at all. This makes it impossible to print live status updates.

  9. added
    help wanted (Docker)
    on Mar 28, 2025
  10. removed
    help wanted (Docker)
    on Oct 27, 2025
  11. fiso64 commented on Nov 19, 2025

    @fiso64
    OwnerAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions