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

@ -49,7 +49,7 @@ foot+base|foot base fragment,
ed=\E[J,
el=\E[K,
el1=\E[1K,
flash=\E[?5h$<100/>\E[?5l,
flash=\E[1001;100t,
home=\E[H,
hpa=\E[%i%p1%dG,
ht=^I,