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
I'm programming a full screen program with Live way, and it works well.
When the program has some problems, some module report warnings or errs on stdout.
The screen has a FLASH: I think some module's 'print to stdout', and Rich live refresh the full screen, so it's covered by the new rich screen. When I ctrl-c, the screen goes back to prompt stayed on my 'python3 myapp.py' without the warning message left.
I've tried the redirect_stdout and redirect_stderr to False ( or True), but It behaves the same way like above.
How can I redirect the stdout to some Rich object, eg. a Text in Panel ? So I can trace the stdout by other module's print in a 'layout['box1']' on the full screen?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm programming a full screen program with Live way, and it works well.
When the program has some problems, some module report warnings or errs on stdout.
The screen has a FLASH: I think some module's 'print to stdout', and Rich live refresh the full screen, so it's covered by the new rich screen. When I ctrl-c, the screen goes back to prompt stayed on my 'python3 myapp.py' without the warning message left.
I've tried the redirect_stdout and redirect_stderr to False ( or True), but It behaves the same way like above.
How can I redirect the stdout to some Rich object, eg. a Text in Panel ? So I can trace the stdout by other module's print in a 'layout['box1']' on the full screen?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions