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

Update crossterm to version 0.24 #50

Merged
merged 2 commits into from
Jul 27, 2022

Conversation

sholderbach
Copy link
Contributor

Necessary changes to be compatible with crossterm = "0.24"

This change currently adapts to the newly added
crossterm::style::ContentStyle.underline_color
by setting it simply to the foreground color.

Addresses #49

Will require a new release to be usable for compatibility with new crossterm version

Necessary changes to be compatible with `crossterm = "0.24"`

This change currently adapts to the newly added
`crossterm::style::ContentStyle.underline_color`
by setting it simply to the foreground color.
Copy link
Owner

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

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

Thank you! (I wasn't aware that underlines could have a different color than the foreground color?)

@sharkdp sharkdp linked an issue Jul 27, 2022 that may be closed by this pull request
@sharkdp sharkdp merged commit 955247a into sharkdp:master Jul 27, 2022
@sholderbach sholderbach deleted the update-crossterm branch July 27, 2022 22:00
@sholderbach
Copy link
Contributor Author

Thanks for the quick release! Don't know which terminals support the fancy underlines or if there is a good way to test for that. (crossterm PR which introduced it: crossterm-rs/crossterm#679)

@sholderbach
Copy link
Contributor Author

Sorry I introduced an incompatibility with that, some terminal emulators seem to take the crossterm underline color as a reason to blink.

Patched by #51

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.

support crossterm 0.24 with it's new underline styles
2 participants