Terminal control/Ringing the terminal bell

From Rosetta Code
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)
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.

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.

Tcl

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