aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-21 17:14:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-21 17:14:19 +0000
commit0dd8951cb3d3b260575162ebbd1914c61a10d876 (patch)
treee05b6e5584516e97a285780c9fec8e114a2123fc /terminal.h
parentcsi: remove erronous final (diff)
flash: implement 'flash'
Use our own escape sequence for the 'flash' terminfo entry. Implemented by arming a timer FD and setting a boolean that indicates we're currently "flashing". The renderer draws a semi-transparent yellowish layer over the entire window when "flashing" is active.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index a32f7890..805e2b99 100644
--- a/terminal.h
+++ b/terminal.h
@@ -243,6 +243,9 @@ struct terminal {
char *window_title;
tll(char *) window_title_stack;
+ bool flash_active;
+ int flash_timer_fd;
+
struct vt vt;
struct kbd kbd;