aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKarel Balej <balejk@matfyz.cz>2024-05-09 16:47:31 +0200
committerRobin Jarry <robin@jarry.cc>2024-06-04 21:10:14 +0200
commit659069dd1f04dd0573d174125da874b8f0e301fb (patch)
tree3256f8305c3d1e5d12d11b02c947a3b2b2528059 /app
parent3e40b2384b0a808f54f7331328ee84cbaee3de98 (diff)
downloadaerc-659069dd1f04dd0573d174125da874b8f0e301fb.tar.gz
app: propagate bell from the built-in terminal
Make aerc ring the terminal bell if a program running in it's built-in terminal attempts to do the same. Changelog-added: Propagate terminal bell from the built-in terminal. Signed-off-by: Karel Balej <balejk@matfyz.cz> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app')
-rw-r--r--app/terminal.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/terminal.go b/app/terminal.go
index 7f9857dc..a3109321 100644
--- a/app/terminal.go
+++ b/app/terminal.go
@@ -151,6 +151,8 @@ func (t *Terminal) HandleEvent(ev vaxis.Event) {
case term.EventClosed:
t.Close()
ui.Invalidate()
+ case term.EventBell:
+ aerc.Beep()
}
}