summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-02-06 22:17:01 +0100
committersalmonik <raisersoft@proton.me>2026-02-06 22:17:01 +0100
commit3c5363dd7a50219d76f8be3c1e3282cd420a0447 (patch)
tree98283b53b998c0ede2911f570dc342c95f77d181 /config.def.h
parentbold is not bright patch (diff)
downloadst-3c5363dd7a50219d76f8be3c1e3282cd420a0447.tar.gz
st-3c5363dd7a50219d76f8be3c1e3282cd420a0447.zip
apply visualbell2 patches - basic and enhanced
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 375c248..e358fba 100644
--- a/config.def.h
+++ b/config.def.h
@@ -73,6 +73,25 @@ static unsigned int cursorthickness = 2;
73 */ 73 */
74static int bellvolume = 0; 74static int bellvolume = 0;
75 75
76/* visual-bell timeout in ms (0 to disable visual-bell) */
77static int vbelltimeout = 150;
78
79/* choose predefined visual-bell cells to inverse, or define your own logic */
80#define VBCELL x==0 || x==right || y==0 || y==bottom /* border */
81// #define VBCELL 1 /* all cells - whole screen */
82// #define VBCELL y==bottom && x>right-2 /* bottom-right */
83
84static int vbellmode = 1;
85/* vbellmode: 0: invert cells. 1: draw a circle with these parameters:
86 * - base and outline colors (colorname index - see below)
87 * - radius: relative to window width, or if negative: relative to cell-width
88 * - position: relative to window width/height (0 and 1 are at the edges) */
89static int vbellcolor = 3;
90static int vbellcolor_outline = 1;
91static float vbellradius = 0.03;
92static float vbellx = 0.5;
93static float vbelly = 0.5;
94
76/* default TERM value */ 95/* default TERM value */
77char *termname = "st-256color"; 96char *termname = "st-256color";
78 97