diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-08-18 22:45:33 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-08-18 22:45:33 +0200 |
commit | 31dde49c7b51bc8a9de8db08edb4008f026db35b (patch) | |
tree | 4cf5c3d5e5deb24f3bd27ed0293d9de29596cb87 /st.h | |
parent | 1a56c3c9d23eae2e83040d849a1980c04e12f0a3 (diff) |
Fix so that the boxdraw patch is applied correctly(?), still issue with bottom graph display
Diffstat (limited to 'st.h')
-rw-r--r-- | st.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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, }; @@ -111,6 +112,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; @@ -123,3 +132,4 @@ extern char *termname; extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; +extern const int boxdraw, boxdraw_bold, boxdraw_braille; |