aboutsummaryrefslogtreecommitdiffstats
path: root/st.h
diff options
context:
space:
mode:
authorNikita Langer <nikitalanger@icloud.com>2026-05-27 21:42:12 +0200
committerNikita Langer <nikitalanger@icloud.com>2026-05-27 21:42:12 +0200
commit3ad44279c69b20201cee32b742cc78094bd87c6b (patch)
tree173730b1df7f48b353e09963faf4e7e869c587b8 /st.h
parent6fa9457fbb333610be5b49933c5cfd602afadd3c (diff)
downloadst-3ad44279c69b20201cee32b742cc78094bd87c6b.tar.gz
st-3ad44279c69b20201cee32b742cc78094bd87c6b.tar.bz2
st-3ad44279c69b20201cee32b742cc78094bd87c6b.tar.xz
st-3ad44279c69b20201cee32b742cc78094bd87c6b.zip
drag n drop
Diffstat (limited to 'st.h')
-rw-r--r--st.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/st.h b/st.h
index 4e584b6..5ff3c17 100644
--- a/st.h
+++ b/st.h
@@ -21,6 +21,10 @@
#define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b))
#define IS_TRUECOL(x) (1 << 24 & (x))
+#define HEX_TO_INT(c) ((c) >= '0' && (c) <= '9' ? (c) - '0' : \
+ (c) >= 'a' && (c) <= 'f' ? (c) - 'a' + 10 : \
+ (c) >= 'A' && (c) <= 'F' ? (c) - 'A' + 10 : -1)
+
enum glyph_attribute {
ATTR_NULL = 0,
ATTR_BOLD = 1 << 0,