diff options
| author | salmonik <raisersoft@proton.me> | 2026-02-06 22:17:01 +0100 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-02-06 22:17:01 +0100 |
| commit | 3c5363dd7a50219d76f8be3c1e3282cd420a0447 (patch) | |
| tree | 98283b53b998c0ede2911f570dc342c95f77d181 /config.h | |
| parent | bold is not bright patch (diff) | |
| download | st-3c5363dd7a50219d76f8be3c1e3282cd420a0447.tar.gz st-3c5363dd7a50219d76f8be3c1e3282cd420a0447.zip | |
apply visualbell2 patches - basic and enhanced
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 19 |
1 files changed, 19 insertions, 0 deletions
| @@ -73,6 +73,25 @@ static unsigned int cursorthickness = 2; | |||
| 73 | */ | 73 | */ |
| 74 | static int bellvolume = 0; | 74 | static int bellvolume = 0; |
| 75 | 75 | ||
| 76 | /* visual-bell timeout in ms (0 to disable visual-bell) */ | ||
| 77 | static 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 | |||
| 84 | static 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) */ | ||
| 89 | static int vbellcolor = 3; | ||
| 90 | static int vbellcolor_outline = 1; | ||
| 91 | static float vbellradius = 0.03; | ||
| 92 | static float vbellx = 0.5; | ||
| 93 | static float vbelly = 0.5; | ||
| 94 | |||
| 76 | /* default TERM value */ | 95 | /* default TERM value */ |
| 77 | char *termname = "st-256color"; | 96 | char *termname = "st-256color"; |
| 78 | 97 | ||
