Skip to content

Handle parameters on SGR-4 (underline) #477

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidrg
Copy link
Owner

@davidrg davidrg commented Jul 19, 2025

Some recent terminal emulators have supported additional parameters on SGR-4 to set different underline styles as well as to turn off unline (eg, \x1b[4:0m).

While there are no immediate plans to support additional underline styles, these parameters should at least be handled, and the two that could easily be supported (no underline, and regular underline) ought to do the right thing in case some application decides to blindly use them.

This PR adds parsing for parameters on SGR-4, and if KUI_EXTENDED_UL is defined those parameters will be stored and forwarded all the way to the KUI renderer where there is a TODO in place of an implementation.

The actual underline styles aren't implemented, though they are stored.
@davidrg davidrg changed the title Hand parameters on SGR-4 (underline) Handle parameters on SGR-4 (underline) Jul 20, 2025
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.

1 participant