summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-16 11:17:59 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-16 11:17:59 +0200
commit123bae234ea05efa8221cfb412572b618719e070 (patch)
treea4f4a2ca14baa7542233c0ad54514ff98abfea3e /st.h
parent045a0fab4f80b57f4a982ae6bc5f33fe21d66111 (diff)
downloadst-123bae234ea05efa8221cfb412572b618719e070.tar.gz
st-123bae234ea05efa8221cfb412572b618719e070.tar.bz2
st-123bae234ea05efa8221cfb412572b618719e070.zip
Updated to 0.8.3 with previous config + mouse scrollback
Diffstat (limited to 'st.h')
-rw-r--r--st.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/st.h b/st.h
index d978458..b49b84a 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,6 +83,8 @@ 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 *);