Skip to content

Commit 79661c5

Browse files
committed
docs: update readme
add underline styling examples & matrix
1 parent d960f27 commit 79661c5

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

README.md

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ s.CrossOut()
115115
s.Underline()
116116
s.Overline()
117117

118+
// Underline styles
119+
s.Underline(output.Color("#ff0000"))
120+
s.Undercurl(output.Color("11"))
121+
s.Underdouble()
122+
s.Underdot(output.Color("216"))
123+
s.Underdash()
124+
118125
// Reverse swaps current fore- & background colors
119126
s.Reverse()
120127

@@ -316,28 +323,32 @@ termenv.DisableBracketedPaste()
316323
<details>
317324
<summary>Click to show feature matrix</summary>
318325

319-
| Terminal | Query Color Scheme | Query Cursor Position | Set Window Title | Change Cursor Color | Change Default Foreground Setting | Change Default Background Setting | Bracketed Paste | Extended Mouse (SGR) | Pixels Mouse (SGR-Pixels) |
320-
| ---------------- | :----------------: | :-------------------: | :--------------: | :-----------------: | :-------------------------------: | :-------------------------------: | :-------------: | :------------------: | :-----------------------: |
321-
| alacritty ||||||||||
322-
| foot ||||||||||
323-
| kitty ||||||||||
324-
| Konsole ||||||||||
325-
| rxvt ||||||||||
326-
| urxvt ||||||||||
327-
| screen |[^mux] |||||||||
328-
| st ||||||||||
329-
| tmux |[^mux] |||||||||
330-
| vte-based[^vte] ||||||||||
331-
| wezterm ||||||||||
332-
| xterm ||||||||||
333-
| Linux Console ||||||||||
334-
| Apple Terminal ||||||||||
335-
| iTerm ||||||||||
336-
| Windows cmd ||||||||||
337-
| Windows Terminal ||||||||||
326+
| Terminal | Colored & Styled Underlines | Query Color Scheme | Query Cursor Position | Set Window Title | Change Cursor Color | Change Default Foreground Setting | Change Default Background Setting | Bracketed Paste | Extended Mouse (SGR) | Pixels Mouse (SGR-Pixels) |
327+
| ---------------- | :-------------------------: | :----------------: | :-------------------: | :--------------: | :-----------------: | :-------------------------------: | :-------------------------------: | :-------------: | :------------------: | :-----------------------: |
328+
| alacritty | | |||||||||
329+
| foot | [^foot] | |||||||||
330+
| kitty | | |||||||||
331+
| Konsole | | |||||||||
332+
| rxvt | | |||||||||
333+
| urxvt | | |||||||||
334+
| screen | | [^mux] |||||||||
335+
| st | [^st] | |||||||||
336+
| tmux | | [^mux] |||||||||
337+
| vte-based[^vte] | | |||||||||
338+
| wezterm | | |||||||||
339+
| xterm | | |||||||||
340+
| Linux Console | | |||||||||
341+
| Apple Terminal | | |||||||||
342+
| iTerm |[^iterm] | |||||||||
343+
| Windows cmd | | |||||||||
344+
| Windows Terminal | [^winterm] | |||||||||
338345

339346
[^vte]: This covers all vte-based terminals, including Gnome Terminal, guake, Pantheon Terminal, Terminator, Tilix, XFCE Terminal.
340347
[^mux]: Unavailable as multiplexers (like tmux or screen) can be connected to multiple terminals (with different color settings) at the same time.
348+
[^foot]: https://codeberg.org/dnkl/foot/issues/828
349+
[^st]: Underline styles & colors available using this patch https://st.suckless.org/patches/undercurl/
350+
[^iterm]: Supported in iTerm2 v3.5 https://gitlab.com/gnachman/iterm2/-/issues/6382
351+
[^winterm]: Refer to https://github.com/microsoft/terminal/issues/7228
341352

342353
You can help improve this list! Check out [how to](ansi_compat.md) and open an issue or pull request.
343354

0 commit comments

Comments
 (0)