From 0dd8951cb3d3b260575162ebbd1914c61a10d876 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 21 Jul 2019 19:14:19 +0200 Subject: 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. --- terminal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'terminal.h') 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; -- cgit v1.3