Ensure newline before typer.secho
#661
Unanswered
WilliamDEdwards
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
-
Description
How do I tell Typer to ensure a newline before
typer.secho
when there was output before?In my case, I do not know if there was output before
typer.secho
(as it is called from a generic function). So adding a leading\n
does not suffice, as that would cause a newline to be present when there was no output before too.For example:
... should output:
... and this:
... should output this:
Operating System
Linux, macOS
Operating System Details
No response
Typer Version
0.7.0
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions