diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-14 12:40:38 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-14 12:40:38 -0600 |
| commit | ae4ef72755d559c19665d1bb8325c42558bd4172 (patch) | |
| tree | d967229e5df0cce02df8ae3781b9a0214a65f64a /st.h | |
| parent | 64d2eb519923ac5a4d0dbd8ace95cb5ac2639dfe (diff) | |
Applied st-undercurl-0.9-20240103.diff cleanly with offset adjustments.
Benefits:
- Adds support for curly/wavy underlines (undercurl)
- Custom underline colors via SGR escape codes
- Compatible with Vim/NeoVim LSP diagnostics and spell-check
- Supports standard terminal features used by most modern terminals
Use cases:
- Editor spell-check with wavy underlines
- LSP warnings/errors with colored underlines
- Enhanced visual feedback in terminal applications
Diffstat (limited to 'st.h')
| -rw-r--r-- | st.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -38,6 +38,7 @@ enum glyph_attribute { ATTR_SELECTED = 1 << 12, ATTR_BOXDRAW = 1 << 13, ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, + ATTR_DIRTYUNDERLINE = 1 << 15, }; enum selection_mode { @@ -69,6 +70,8 @@ typedef struct { ushort mode; /* attribute flags */ uint32_t fg; /* foreground */ uint32_t bg; /* background */ + int ustyle; /* underline style */ + int ucolor[3]; /* underline color */ } Glyph; typedef Glyph *Line; |
