question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] rich.progress should fallback to use ─ instead of -

See original GitHub issue

So I use wsltty mainly where rich.progress uses the ━━ character for the progress bar. I checked it in cmd.exe and it showed -- for the progress bar. The fallback should be ── (also used in tables), it would give a connected line. img

btw: is there any terminal that does not support the character?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pcrolandcommented, Sep 8, 2022

This is still an issue as of now. The fallback character can simply be a . It’s even available in CP437 IBM so every terminal supports it in theory.

0reactions
wasi-mastercommented, Sep 10, 2022

So the change I mentioned above works, but it has one unexpected side effect. basically options.is_terminal is for checking if the output is a terminal, not specifically command prompt, and because of that the normal behavior also changes. now one thing I notice is that it defaults to ASCII Mode on Command prompt.

So I went on to test if ASCII mode is necessary. and it looks like it isn’t since the normal character also works for me, so I checked a bunch of encodings and most of them seem to work fine. now I am a bit stuck on what to do next

image

On Powershell with Windows Terminal

Before: image After: image

If you want the default character to change to the thinner one then you can add

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for rich.console - Rich's documentation!
This method can return a new list of renderables, or modify and return the same list. Args: renderables (List[ConsoleRenderable]): A number of renderable ......
Read more >
Ubuntu Manpage: checkbox_ng - CheckboxNG Documentation
xml, is a name of the fallback file that is only created when sending the data to the certification website fails to work...
Read more >
Feedback from Content Editor MVC in Wiki (#332629) · Issues
Without a plain text view, frankly I'd rather use the old editor. ... Here, I would appreciate a rich editing experience.
Read more >
EPUB 3.3 - W3C
It is inappropriate to cite this document as other than work in progress. ... MUST NOT use the encryption features defined by the...
Read more >
T229242 Explore ways to restrict suggestions to a given knowledge ...
Query Wikidata for related articles. A Wikidata query (example) will find articles related to the selected topic area through the P31 property that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found