mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04: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
|
|
@ -996,6 +996,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
|
|||
.esc_prefix = true,
|
||||
.eight_bit = true,
|
||||
},
|
||||
.bell_is_urgent = conf->bell_is_urgent,
|
||||
.tab_stops = tll_init(),
|
||||
.wl = wayl,
|
||||
.render = {
|
||||
|
|
@ -2374,7 +2375,7 @@ term_flash(struct terminal *term, unsigned duration_ms)
|
|||
void
|
||||
term_bell(struct terminal *term)
|
||||
{
|
||||
if (term->kbd_focus || !term->conf->bell_set_urgency)
|
||||
if (term->kbd_focus || !term->bell_is_urgent)
|
||||
return;
|
||||
|
||||
/* There's no 'urgency' hint in Wayland - we just paint the margins red */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue