-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Enable setting the underline color #308
Comments
Sounds like a nice feature, feel free to submit a PR! 🐻 |
I've noticed only crossterm supports setting the underline color, termion and termwiz do not. |
The proposed function name will conflict with #289 which adds an It would be nice to generally keep feature parity between the backends, so perhaps submitting PRs to termion / termwiz for this feature would be a good in addition to feature flagging behind the crossterm flag here. We recently made it possible to build Ratatui with all backend feature flags enabled together in order to make it easier to develop changes to backends without having to disable / enable features, so the implementation of this might end up being a no-op on the other backends? |
I've renamed it it to I am not really familiar with any of the non-basic escape codes, so I don't really know if some other codes would need to be added in the future. I can make a issue on the termion/termwiz repositories, but I am not really interested in making a PR. For now the implementation is a no-op for the other backends. I just submitted a PR (#310). |
feat(style): Enable setting the underline color (ratatui#308) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
…i#308) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
…i#308) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
I submited an issue for termwiz, but I don't have a gitlab account on redox-os' gitlab. I would prefer to not have to create one, if someone can submit an issue there? |
…310) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
…i#308) (ratatui#310) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
Problem
There is a nonstandard ansi escape code that allows setting the underline color.
This is done with the code
58
. it uses the same arguments as the38
and48
codes do for settings their colors.The underline color can be reset with the code
59
.See kitty documentation for more info.
This is implemented in at least kitty, wezterm, alacritty, gnome terminal and konsole.
Solution
Allow this to be possible
I can make a PR if needed.
The text was updated successfully, but these errors were encountered: