-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide spinner and progress when done #171
Comments
I agree, this was bothering me when I was trying to show examples of |
Thanks for the report! Yeah, we can definitely improve this. Hiding the spinner/progress entirely might be a little tricky to do with just our current use of the
Thoughts? |
@woodruffw Can't we just do one last spinner "update" with the results? |
Yeah, I think that would work. Are you thinking that we'd remove the current trailing line in that case, or keep it as a duplicate? |
Remove it I guess, but that would probably be dependent on the state of |
Yeah, that's the corner case I was thinking of. I'll play around with it and make some demos with the PR. |
I don't have a lot of experience with manipulating the terminal output and I've not spent very long looking at how self.writeln('') # Replace printed characters with whitespace
self.file.write('\r') # Reset the cursor
self.file.flush() |
Oh, interesting. I had pessimistically assumed that it would be worse than that 😅. I'll test it out. |
* _state: clear the spinner entirely when done Closes #171. * CHANGELOG: record changes
Thanks for the quick fix! |
You're welcome; thanks for the report! Let us know if you have any other issues. |
I ran
pip-audit
and tabbed away from the terminal. When I tabbed back it said:This confused me, thinking it had only audited yarl, so I re-ran it. This is a fairly minor UX nit, but if there's an easy fix, I think it'd be better to hide the progress text once auditing is finished.
The text was updated successfully, but these errors were encountered: