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

Add support for underline styles #1896

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

Conversation

joelim-work
Copy link
Collaborator


Add support for the following terminal escape sequences which set underline styles:

Escape sequence Description
\033[4:0m No underline
\033[4:1m Single underline (same as \033[4m)
\033[4:2m Double underline
\033[4:3m Curly underline
\033[4:4m Dotted underline
\033[4:5m Dashed underline

Sample config for testing:

cmd test &{{
    lf -remote "send $id set cursorpreviewfmt \"\033[4:0m\""
    sleep 1
    lf -remote "send $id set cursorpreviewfmt \"\033[4:1m\""
    sleep 1
    lf -remote "send $id set cursorpreviewfmt \"\033[4:2m\""
    sleep 1
    lf -remote "send $id set cursorpreviewfmt \"\033[4:3m\""
    sleep 1
    lf -remote "send $id set cursorpreviewfmt \"\033[4:4m\""
    sleep 1
    lf -remote "send $id set cursorpreviewfmt \"\033[4:5m\""
    sleep 1
    lf -remote "send $id set cursorpreviewfmt \"\033[4m\""
}}

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.

Is undercurl supportted?
1 participant