Jump to content

Terminal control/Ringing the terminal bell: Difference between revisions

m
added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble.
(→‎{{header|Pascal}}: adding PARI/GP version)
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble.)
Line 1:
{{task|Terminal control}}[[Terminal Control::task| ]]
[[Terminal Control::task| ]]
Make the terminal running the program ring its "bell". On modern terminal emulators, this may be done by playing some other sound which might or might not be configurable, or by flashing the title bar or inverting the colors of the screen, 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:
Make the terminal running the program ring its "bell".
 
Make the terminal running the program ring its "bell". On modern terminal emulators, this may be done by playing some other sound which might or might not be configurable, or by flashing the title bar or inverting the colors of the screen, but was classically a physical bell within the terminal.   It is usually used to indicate a problem where a wrong character has been typed.
 
In most terminals, if the [[wp:Bell character|Bell character]] (ASCII code 7, <code>\a</code> in C) is printed by the program, it will cause the terminal to ring its bell. This is a function of the terminal, and is independent of the programming language of the program, other than the ability to print a particular character to standard out.
<br><br>
 
=={{header|6800 Assembly}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.