summaryrefslogtreecommitdiff
path: root/files/config/suckless/st/st.h
diff options
context:
space:
mode:
authorShipwreckt <me@shipwreckt.co.uk>2025-10-22 22:23:00 +0100
committerShipwreckt <me@shipwreckt.co.uk>2025-10-22 22:23:00 +0100
commit1ae24861a06d773836fb674814aa03df90bbb095 (patch)
tree23c9ae7a23593be5aa1d78b1cb0d9b0cc7a255a1 /files/config/suckless/st/st.h
parente63a16b509b05993fc7900b6296ba8601e343976 (diff)
Updated install script, some configs, added vimwiki, added doas def
Diffstat (limited to 'files/config/suckless/st/st.h')
-rw-r--r--files/config/suckless/st/st.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/files/config/suckless/st/st.h b/files/config/suckless/st/st.h
index a611939..99b4e2b 100644
--- a/files/config/suckless/st/st.h
+++ b/files/config/suckless/st/st.h
@@ -12,7 +12,7 @@
#define DEFAULT(a, b) (a) = (a) ? (a) : (b)
#define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)
#define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || \
- (a).bg != (b).bg || (a).decor != (b).decor)
+ (a).bg != (b).bg)
#define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + \
(t1.tv_nsec-t2.tv_nsec)/1E6)
#define MODBIT(x, set, bit) ((set) ? ((x) |= (bit)) : ((x) &= ~(bit)))
@@ -20,10 +20,6 @@
#define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b))
#define IS_TRUECOL(x) (1 << 24 & (x))
-// This decor color indicates that the fg color should be used. Note that it's
-// not a 24-bit color because the 25-th bit is not set.
-#define DECOR_DEFAULT_COLOR 0x0ffffff
-
enum glyph_attribute {
ATTR_NULL = 0,
ATTR_BOLD = 1 << 0,
@@ -39,7 +35,6 @@ enum glyph_attribute {
ATTR_WDUMMY = 1 << 10,
ATTR_BOXDRAW = 1 << 11,
ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT,
- ATTR_IMAGE = 1 << 14,
};
enum selection_mode {
@@ -48,11 +43,6 @@ enum selection_mode {
SEL_READY = 2
};
-static inline void tsetimgrow(Glyph *g, uint32_t row) {
- g->u.img.row = row;
-}
-
-
enum selection_type {
SEL_REGULAR = 1,
SEL_RECTANGULAR = 2
@@ -63,14 +53,6 @@ enum selection_snap {
SNAP_LINE = 2
};
-enum underline_style {
- UNDERLINE_STRAIGHT = 1,
- UNDERLINE_DOUBLE = 2,
- UNDERLINE_CURLY = 3,
- UNDERLINE_DOTTED = 4,
- UNDERLINE_DASHED = 5,
-};
-
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned long ulong;
@@ -84,7 +66,6 @@ typedef struct {
ushort mode; /* attribute flags */
uint32_t fg; /* foreground */
uint32_t bg; /* background */
- uint32_t decor; /* decoration (like underline) */
} Glyph;
typedef Glyph *Line;
@@ -127,8 +108,6 @@ void selextend(int, int, int, int);
int selected(int, int);
char *getsel(void);
-Glyph getglyphat(int, int);
-
size_t utf8encode(Rune, char *);
void *xmalloc(size_t);