summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-14 19:50:19 -0400
committerstefan <stefan@s00.xyz>2023-04-14 19:50:19 -0400
commitea4d4ad4ef0eae8f78d9e38bc3dc3145edded12a (patch)
tree46b1b637ba4b379064464fe2f23fa101fd281e8e /st.h
parent211964d56ee00a7d46e251cbc150afb79138ae37 (diff)
downloadst-ea4d4ad4ef0eae8f78d9e38bc3dc3145edded12a.tar.gz
initial commit
Diffstat (limited to 'st.h')
-rw-r--r--st.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/st.h b/st.h
index fd3b0d8..a584b72 100644
--- a/st.h
+++ b/st.h
@@ -33,6 +33,7 @@ enum glyph_attribute {
ATTR_WRAP = 1 << 8,
ATTR_WIDE = 1 << 9,
ATTR_WDUMMY = 1 << 10,
+ ATTR_BOXDRAW = 1 << 11,
ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT,
};
@@ -81,12 +82,15 @@ void die(const char *, ...);
void redraw(void);
void draw(void);
+void kscrolldown(const Arg *);
+void kscrollup(const Arg *);
void printscreen(const Arg *);
void printsel(const Arg *);
void sendbreak(const Arg *);
void toggleprinter(const Arg *);
int tattrset(int);
+int tisaltscr(void);
void tnew(int, int);
void tresize(int, int);
void tsetdirtattr(int);
@@ -111,6 +115,14 @@ void *xmalloc(size_t);
void *xrealloc(void *, size_t);
char *xstrdup(const char *);
+int isboxdraw(Rune);
+ushort boxdrawindex(const Glyph *);
+#ifdef XFT_VERSION
+/* only exposed to x.c, otherwise we'll need Xft.h for the types */
+void boxdraw_xinit(Display *, Colormap, XftDraw *, Visual *);
+void drawboxes(int, int, int, int, XftColor *, XftColor *, const XftGlyphFontSpec *, int);
+#endif
+
/* config.h globals */
extern char *utmp;
extern char *scroll;
@@ -124,3 +136,4 @@ extern unsigned int tabspaces;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
extern unsigned int defaultcs;
+extern const int boxdraw, boxdraw_bold, boxdraw_braille;
© 2025 Stefan Weigl-Bosker