I'm wondering if there's a way to turn off the terminal bell for terminal applications such as man
and less
, e.g. when you're already at the top of the file/man page and press "k" to attempt to scroll up. Normally, I'd just turn off the bell on my terminal emulator altogether, but the popular xset b off
command doesn't seem to be working for my setup: I'm running XTerm from Ubuntu 16.04 (specifically, in WSL) over X11 forwarding to Xming. So I'd also appreciate any notes on how to turn off XTerm's bell, too, if that's available.
I'm aware of how to turn off readline
's bell by putting set bell-style none
in ~/.inputrc
, but unfortunately that only helps for input (e.g. multiple available tab completions), not for when scrolling man/less pages.
I'm also aware of the -Q
command line arg to less
which turns off the bell, but I guess I'm hoping that there's a more general setting/command that will apply to both man
and less
(and possibly others).
I figure if I can't turn off XTerm's bell altogether, I'll try and learn how to turn off each application's bell, one by one, until I get at least all of the annoying ones.