silence bell in sh

How do you silence the bell in sh in FreeBSD 15?

I.e. I don't wan't to hear anything on the speaker on pressing backspace in an empty command line.

printf "\007" should still work, so no sysctl

set bell-style none does not work.
 
If you're using xterm, you can specify -vb on the command line, which will make xterm use a 'visual bell' (a brief flash) rather than sounding the system bell. Just say
$ xterm -vb
 
Back
Top