@@ -115,6 +115,13 @@ s.CrossOut()
115
115
s.Underline ()
116
116
s.Overline ()
117
117
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
+
118
125
// Reverse swaps current fore- & background colors
119
126
s.Reverse ()
120
127
@@ -316,28 +323,32 @@ termenv.DisableBracketedPaste()
316
323
<details >
317
324
<summary >Click to show feature matrix</summary >
318
325
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 ] | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
338
345
339
346
[ ^ vte ] : This covers all vte-based terminals, including Gnome Terminal, guake, Pantheon Terminal, Terminator, Tilix, XFCE Terminal.
340
347
[ ^ 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
341
352
342
353
You can help improve this list! Check out [ how to] ( ansi_compat.md ) and open an issue or pull request.
343
354
0 commit comments