From b40ce8559698d1442ced6e537fb18091f1343fb8 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Mon, 14 Aug 2023 01:37:39 +0300 Subject: Complete migration and clean installation. Up to date with the upstream and the latest patches. Personal configuration merged. Changes to be committed: modified: Makefile new file: boxdraw.c new file: boxdraw.o new file: boxdraw_data.h modified: config.def.h new file: config.def.h.orig new file: config.def.h.rej new file: config.h modified: config.mk new file: patches/st-alpha-20220206-0.8.5.diff new file: patches/st-anysize-20220718-baa9357.diff new file: patches/st-boxdraw_v2-0.8.5.diff new file: patches/st-clipboard-0.8.3.diff new file: patches/st-copyurl-multiline-20230406-211964d.diff new file: patches/st-font2-0.8.5.diff new file: patches/st-scrollback-20210507-4536f46.diff new file: patches/st-scrollback-mouse-20220127-2c5edf2-after-scrollback.diff modified: st.c new file: st.c.orig new file: st.c.rej modified: st.h new file: st.h.orig new file: st.h.rej new file: st.o modified: x.c new file: x.c.orig new file: x.o --- st.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'st.h') diff --git a/st.h b/st.h index fd3b0d8..b3ca24a 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,10 +82,13 @@ 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 *); +void copyurl(const Arg *); int tattrset(int); void tnew(int, 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,5 @@ extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; extern unsigned int defaultcs; +extern float alpha; +extern const int boxdraw, boxdraw_bold, boxdraw_braille; -- cgit v1.2.3