mirror of
https://github.com/junegunn/fzf.git
synced 2026-03-02 13:27:16 +08:00
Add underline style variants and underline color support
Support double, curly, dotted, and dashed underline styles via --color (e.g. underline-curly) and ANSI passthrough (SGR 4:N, 58, 59) with --ansi. Close #4633 Close #4678 Thanks to @shtse8 for the test cases.
This commit is contained in:
@@ -1407,6 +1407,14 @@ func parseTheme(defaultTheme *tui.ColorTheme, str string) (*tui.ColorTheme, *tui
|
||||
cattr.Attr |= tui.Italic
|
||||
case "underline":
|
||||
cattr.Attr |= tui.Underline
|
||||
case "underline-double":
|
||||
cattr.Attr |= tui.Underline | tui.UlStyleDouble
|
||||
case "underline-curly":
|
||||
cattr.Attr |= tui.Underline | tui.UlStyleCurly
|
||||
case "underline-dotted":
|
||||
cattr.Attr |= tui.Underline | tui.UlStyleDotted
|
||||
case "underline-dashed":
|
||||
cattr.Attr |= tui.Underline | tui.UlStyleDashed
|
||||
case "blink":
|
||||
cattr.Attr |= tui.Blink
|
||||
case "reverse":
|
||||
|
||||
Reference in New Issue
Block a user