diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-05-27 21:42:12 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-05-27 21:42:12 +0200 |
| commit | 3ad44279c69b20201cee32b742cc78094bd87c6b (patch) | |
| tree | 173730b1df7f48b353e09963faf4e7e869c587b8 /st.h | |
| parent | 6fa9457fbb333610be5b49933c5cfd602afadd3c (diff) | |
| download | st-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |
