Replies: 1 comment
-
I generally prefer catching the KeyboardInterrupt exception which will allow the context manager clear the status. But if you want to do it in a signal handler you could try |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi.
First of all, this library is amazing, thank you @willmcgugan!
I am trying to clear a status message that was created in a
with
statement from another function, after the function is interrupted, but I can't seem to figure out how.I've made a little demo below. After pressing Ctrl+C, the status message is still visible until
sys.exit(0)
.It would be nice if I could just do something like
console.status.clear()
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions