Skip to content
Discussion options

You must be logged in to vote

Hi, original author of the console_richlog.py script here. Some context: this was a test to see if I could get coloured output from a subprocess into RichLog. This was not intended to be cross-platform at the moment, just trying out what pieces were in place and what was still missing. So, Rich (?) would detect it was not running in a terminal and would not output colour at all. Fixed with the environment variable, but that does not work on Windows like that. Then, RichLog does understand Rich markup, but not ansi codes. So, had to use Text.from_ansi() which did work: on MacOS, I see coloured log entries in my RichLog! However, the Rich example moves the cursor back and you see updating p…

Replies: 7 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@davep
Comment options

@belonesox
Comment options

Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Answer selected by belonesox
Comment options

You must be logged in to vote
3 replies
@TomJGooding
Comment options

@davidfokkema
Comment options

@davidfokkema
Comment options

Comment options

You must be logged in to vote
2 replies
@belonesox
Comment options

@davidfokkema
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants