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

fix(fmt): Improve terminal styling support #298

Merged
merged 13 commits into from Jan 19, 2024
Merged

fix(fmt): Improve terminal styling support #298

merged 13 commits into from Jan 19, 2024

Conversation

epage
Copy link
Contributor

@epage epage commented Jan 18, 2024

This switches the backend to anstream

This comes with an MSRV bump to 1.70. This allows us to use the latest anstream and avoid is-terminal.

BREAKING CHANGE: Formatter::style, Formatter::default_styled_level, Color, Style, and StyledValue were removed. Formatter::default_level_style was changed to return anstyle::Style.

Fixes #274
Fixes #276

@epage epage force-pushed the term branch 2 times, most recently from 2dc048f to ea46409 Compare January 18, 2024 20:02
@epage epage merged commit 2089053 into rust-cli:main Jan 19, 2024
15 checks passed
@epage epage deleted the term branch January 19, 2024 16:52
epage added a commit to epage/env_logger that referenced this pull request Feb 13, 2024
The documentation for the old API was overlooked in rust-cli#298
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.

Replace is-terminal dep with std::io::IsTerminal WriteStyle is ignored when used with Target::Pipe
1 participant