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

ProgressStyle enable/disable colors based on draw target #699

Merged
merged 3 commits into from
Mar 24, 2025

Conversation

tonywu6
Copy link
Contributor

@tonywu6 tonywu6 commented Mar 21, 2025

Resolves #698

A ProgressBar using stderr as the draw target will now implicitly use stderr to determine if colors are enabled (by configuring its ProgressStyle).

Previously, this was not configured, so the default behavior was to detect colors using stdout no matter what.

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.

Thanks, this looks like a nice improvement!

@tonywu6 tonywu6 requested a review from djc March 24, 2025 12:15
@djc djc merged commit 458e4dc into console-rs:main Mar 24, 2025
10 checks passed
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.

[Feature Request] ProgressStyle: enable/disable colorized output based on draw target
2 participants