summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authoryusufaktepe <yusuf@yusufaktepe.com>2019-05-08 04:05:57 +0300
committeryusufaktepe <yusuf@yusufaktepe.com>2019-05-08 04:05:57 +0300
commit3cd91894ec91a0de7aa71d62949ba3381e600afd (patch)
treeb20ec7e05d5970bdfc7c35bfbf9c89b7541b011b /st.h
parent35506b44adf9176062f2cc51bcfd54ac79246744 (diff)
Updated st to 0.8.2
Updated to latest git (20190414.f1546cf) & updated patches. Changes: . Upstream fixes. . Alpha: Opacity value is now typed in float (0-1). Also "-A" cmd option added as alternative opacity changing method. . Clipboard: middle click pastes from clipboard. . Organized shortcuts.
Diffstat (limited to 'st.h')
-rw-r--r--st.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/st.h b/st.h
index 01cad23..94ce5c3 100644
--- a/st.h
+++ b/st.h
@@ -3,9 +3,6 @@
#include <stdint.h>
#include <sys/types.h>
-/* Arbitrary size */
-#define HISTSIZE 2000
-
/* macros */
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))
@@ -22,8 +19,6 @@
#define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b))
#define IS_TRUECOL(x) (1 << 24 & (x))
-#define TLINE(y) ((y) < term.scr ? term.hist[((y) + term.histi - term.scr \
- + HISTSIZE + 1) % HISTSIZE] : term.line[(y) - term.scr])
enum glyph_attribute {
ATTR_NULL = 0,
@@ -94,6 +89,8 @@ void draw(void);
void externalpipe(const Arg *);
void iso14755(const Arg *);
+void kscrolldown(const Arg *);
+void kscrollup(const Arg *);
void printscreen(const Arg *);
void printsel(const Arg *);
void sendbreak(const Arg *);
@@ -124,18 +121,15 @@ void *xmalloc(size_t);
void *xrealloc(void *, size_t);
char *xstrdup(char *);
-void kscrolldown(const Arg *);
-void kscrollup(const Arg *);
-
/* config.h globals */
extern char *utmp;
extern char *stty_args;
extern char *vtiden;
-extern char *worddelimiters;
+extern wchar_t *worddelimiters;
extern int allowaltscreen;
extern char *termname;
extern unsigned int tabspaces;
-extern unsigned int alpha;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
+extern float alpha;
extern MouseKey mkeys[];