summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2021-08-16 18:22:39 -0500
committerzachir <zachir@librem.one>2021-08-16 18:22:39 -0500
commit5e61b38fb5c2e7b4100e2d391711c019870fb9d8 (patch)
treee051cf7bcb9932a7137b3324d904c43df2d54c41 /st.h
parent65bae4da356c78d67eb8a1a69d258460a1360cb4 (diff)
update
Diffstat (limited to 'st.h')
-rw-r--r--st.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/st.h b/st.h
index 3d351b6..637a490 100644
--- a/st.h
+++ b/st.h
@@ -11,7 +11,8 @@
#define DIVCEIL(n, d) (((n) + ((d) - 1)) / (d))
#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 || \
+#define ATTRCMP(a, b) (((a).mode & (~ATTR_WRAP) & (~ATTR_LIGA)) != ((b).mode & (~ATTR_WRAP) & (~ATTR_LIGA)) || \
+ (a).fg != (b).fg || \
(a).bg != (b).bg)
#define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + \
(t1.tv_nsec-t2.tv_nsec)/1E6)
@@ -33,6 +34,7 @@ enum glyph_attribute {
ATTR_WRAP = 1 << 8,
ATTR_WIDE = 1 << 9,
ATTR_WDUMMY = 1 << 10,
+ ATTR_LIGA = 1 << 11,
ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT,
};
@@ -81,12 +83,17 @@ void die(const char *, ...);
void redraw(void);
void draw(void);
+void iso14755(const Arg *);
+void externalpipe(const Arg *);
+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);
@@ -123,3 +130,6 @@ extern char *termname;
extern unsigned int tabspaces;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
+static unsigned int defaultcs;
+extern char *iso14755_cmd;
+extern float alpha;