Anonymous user
Terminal control/Ringing the terminal bell: Difference between revisions
Terminal control/Ringing the terminal bell (view source)
Revision as of 00:46, 28 September 2012
, 11 years agoadd emacs lisp
(add gnuplot) |
(add emacs lisp) |
||
Line 98:
=={{header|E}}==
<lang e>print("\u0007")</lang>
=={{header|Emacs Lisp}}==
<lang lisp>(ding) ;; ring the bell
(beep) ;; the same thing</lang>
On a tty or in <code>-batch</code> mode this emits a BEL character. In a GUI it does whatever suits the window system. Variables <code>visible-bell</code> and <code>ring-bell-function</code> can control the behaviour.
<code>beep</code> was originally called <code>feep</code>, but that changed, recently :-)
<pre>Fri Dec 13 00:52:16 1985 Richard M. Stallman (rms at prep)
* subr.el: Rename feep to beep, a more traditional name.</pre>
=={{header|Forth}}==
|