summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-14 12:40:38 -0600
committerCraig Jennings <c@cjennings.net>2025-11-14 12:40:38 -0600
commitae4ef72755d559c19665d1bb8325c42558bd4172 (patch)
treed967229e5df0cce02df8ae3781b9a0214a65f64a /st.h
parent64d2eb519923ac5a4d0dbd8ace95cb5ac2639dfe (diff)
apply undercurl patch for enhanced underline stylesHEADmain
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/st.h b/st.h
index 9cf12fd..497b3b5 100644
--- a/st.h
+++ b/st.h
@@ -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;