Skip to content
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

Allow persisting spinner at end of terminal #11

Closed
pupbrained opened this issue Sep 25, 2022 · 1 comment
Closed

Allow persisting spinner at end of terminal #11

pupbrained opened this issue Sep 25, 2022 · 1 comment
Assignees

Comments

@pupbrained
Copy link

Is your feature request related to a problem? Please describe.
I'm using this crate in a program I'm building, and I'd like to be able to have the spinner stay at the bottom while a command is running and printing out to stdout. Currently, the command being ran and the spinner end up "z-fighting" in a way.

Describe the solution you'd like
The spinner would stay at the bottom of the terminal, while the command streams to stdout above the spinner.

Describe alternatives you've considered
I have not found any alternatives at this point.

@ad4mx
Copy link
Owner

ad4mx commented Sep 26, 2022

Hi, I'm afraid this won't be possible since "refreshing" the spinner to a new frame involves deleting the last line and reprinting it again (this is the root cause of your "z-fighting" issue).

@ad4mx ad4mx added the enhancement New feature or request label Sep 26, 2022
@ad4mx ad4mx self-assigned this Sep 26, 2022
@ad4mx ad4mx removed the enhancement New feature or request label Sep 26, 2022
@ad4mx ad4mx closed this as completed Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants