Enable the use of flash as visual bell

With this patch we can configure flash in the bell section.
The colors section allow now to configure the color of the flash and the
alpha to apply to.

Default values are the values which where currently used for flash,
altough I personally like a nice red (eb1313) better.
This commit is contained in:
Raimund Sacherer 2023-10-07 19:37:04 +02:00
parent 56d5d4cc21
commit 36ed07788e
7 changed files with 57 additions and 2 deletions

View file

@ -394,6 +394,12 @@ Note: do not set *TERM* here; use the *term* option in the main
Default: _no_
*flash*
When set to _yes_, foot will emit the bell signal flashing the
terminal window whenever *BEL* is received.
Default: _no_
*command*
When set, foot will execute this command when *BEL* is received.
Default: none
@ -609,6 +615,18 @@ can configure the background transparency with the _alpha_ option.
https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit for an
explanation of the remainder.
*flash*
Color to use for the terminal window flash.
Default: _7f7fff_.
*flash_alpha*
Flash translucency. A value in the range 0.0-1.0, where 0.0
means completely transparent, and 1.0 is opaque.
Default: _0.7_.
*alpha*
Background translucency. A value in the range 0.0-1.0, where 0.0
means completely transparent, and 1.0 is opaque. Default: _1.0_.