Terminal control/Ringing the terminal bell

Revision as of 22:33, 16 October 2010 by rosettacode>Dkf (Created task with Tcl implementation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Make the terminal running the program ring its “bell”. That is often done on modern systems by playing some other sound which might or might not be configurable, but was classically a physical bell within the terminal. It is usually used to indicate a problem where a wrong character has been typed.

Task
Terminal control/Ringing the terminal bell
You are encouraged to solve this task according to the task description, using any language you may know.

Tcl

<lang tcl>puts -nonewline "\a";flush stdout</lang>