From 3c5363dd7a50219d76f8be3c1e3282cd420a0447 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 6 Feb 2026 22:17:01 +0100 Subject: apply visualbell2 patches - basic and enhanced --- config.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index a860986..b47e954 100644 --- a/config.h +++ b/config.h @@ -73,6 +73,25 @@ static unsigned int cursorthickness = 2; */ static int bellvolume = 0; +/* visual-bell timeout in ms (0 to disable visual-bell) */ +static int vbelltimeout = 150; + +/* choose predefined visual-bell cells to inverse, or define your own logic */ +#define VBCELL x==0 || x==right || y==0 || y==bottom /* border */ +// #define VBCELL 1 /* all cells - whole screen */ +// #define VBCELL y==bottom && x>right-2 /* bottom-right */ + +static int vbellmode = 1; +/* vbellmode: 0: invert cells. 1: draw a circle with these parameters: + * - base and outline colors (colorname index - see below) + * - radius: relative to window width, or if negative: relative to cell-width + * - position: relative to window width/height (0 and 1 are at the edges) */ +static int vbellcolor = 3; +static int vbellcolor_outline = 1; +static float vbellradius = 0.03; +static float vbellx = 0.5; +static float vbelly = 0.5; + /* default TERM value */ char *termname = "st-256color"; -- cgit v1.2.3