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

Spinner output not cleared after completion. #55

Open
Soulsbane opened this issue Nov 27, 2017 · 2 comments
Open

Spinner output not cleared after completion. #55

Soulsbane opened this issue Nov 27, 2017 · 2 comments

Comments

@Soulsbane
Copy link

Perhaps I'm just missing something but calling spinner_.finish(); the output of the spinner is still displayed with the message/last tick. Is there a way to clear this?
Example:

Loading
source-keephdalive-locations.lst => 79%
source-keephdalive-writer.lst No Coverage!

Coverage over 2 files: 39%

I want the Loading \ line cleared so it does not appear in subsequent output.
Other than that this is a great module! Thanks!

@kotet
Copy link
Owner

kotet commented Nov 27, 2017

For now, there is no way to clear a message.
I'll add an option to clear it as enum such as FinishBehavior (like a std.algorithm : SwapStrategy).
I have no confidence about naming.
Please let me know if you have any idea :)

@Soulsbane
Copy link
Author

No problem! That sounds fine to me. I'm rather bad at naming things myself.

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