5.22 How do I stop Emacs from beeping on a terminal?

Martin R. Frank writes:

Tell Emacs to use the visible bell instead of the audible bell, and set the visible bell to nothing.

That is, put the following in your TERMCAP environment variable (assuming you have one):

... :vb=: ...

And evaluate the following Lisp form:

(setq visible-bell t)