mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
csi: implement ‘CSI ? 1042 h/l’ - enable/disable bell-is-urgent
This commit is contained in:
parent
c650862b0d
commit
17761dce63
7 changed files with 21 additions and 10 deletions
8
config.c
8
config.c
|
|
@ -519,14 +519,14 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
|||
|
||||
else if (strcmp(key, "bell") == 0) {
|
||||
if (strcmp(value, "set-urgency") == 0)
|
||||
conf->bell_set_urgency = true;
|
||||
conf->bell_is_urgent = true;
|
||||
else if (strcmp(value, "none") == 0)
|
||||
conf->bell_set_urgency = false;
|
||||
conf->bell_is_urgent = false;
|
||||
else {
|
||||
LOG_AND_NOTIFY_ERR(
|
||||
"%s:%d: [default]: bell: "
|
||||
"expected either 'set-urgency' or 'none'", path, lineno);
|
||||
conf->bell_set_urgency = false;
|
||||
conf->bell_is_urgent = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -1902,7 +1902,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
},
|
||||
.pad_x = 2,
|
||||
.pad_y = 2,
|
||||
.bell_set_urgency = false,
|
||||
.bell_is_urgent = false,
|
||||
.startup_mode = STARTUP_WINDOWED,
|
||||
.fonts = tll_init(),
|
||||
.scrollback = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue