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.
This commit is contained in:
Daniel Eklöf 2019-07-21 19:14:19 +02:00
parent 1ff04c5e36
commit 0dd8951cb3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 84 additions and 22 deletions

View file

@ -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;