akermu / emacs-libvterm

Emacs libvterm integration
GNU General Public License v3.0
1.71k stars 136 forks source link

How to enable an audible bell? #580

Open jguzman-tech opened 2 years ago

jguzman-tech commented 2 years ago

I'd like to get vterm to register audible beeps such was when tab-complete fails or when running echo -e '\a'. I don't think it has anything to do with my .emacs because I tried running with --no-init and then only loading the vterm package and I still wasn't hearing the bell.

Is it possible to configure this?

jguzman-tech commented 2 years ago

Unrelated to the vterm package I saw that there's a way to set a visual bell in tmux.

set-window-option -g visual-bell on

Adding this to ~/.tmux.conf will enable visible notifications in the tmux status line (instead of audible beeps). Works for me when running commands in tmux from within a vterm buffer.

pataquets commented 1 year ago

I guess that either bell is completely ignored by libvterm or it's not being forwarded to Emacs. Anyway, I would like to add that having a hook if this is ever passed to Emacs would be also very useful.