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

Add ProgressBar.style(). #396

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Add ProgressBar.style(). #396

merged 1 commit into from
Mar 17, 2022

Conversation

andrewchambers
Copy link
Contributor

No description provided.

Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for submitting a PR. What's your use case here?

src/progress_bar.rs Outdated Show resolved Hide resolved
@andrewchambers
Copy link
Contributor Author

The use case is a function that takes a progress bar, wishes to perform an operation, then restore the progress bar to its old style.

@andrewchambers andrewchambers force-pushed the getstyle branch 2 times, most recently from 31a066b to 16670b1 Compare March 16, 2022 04:20
@andrewchambers
Copy link
Contributor Author

Sorry I must have been a bit tired, fixed the sloppy comment.

@andrewchambers andrewchambers changed the title Add ProgressBar.current_style(). Add ProgressBar.style(). Mar 16, 2022
@djc djc merged commit 3fbac88 into console-rs:main Mar 17, 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

Successfully merging this pull request may close these issues.

2 participants