mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
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:
parent
1ff04c5e36
commit
0dd8951cb3
5 changed files with 84 additions and 22 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue