Terminal control/Ringing the terminal bell: Difference between revisions
Terminal control/Ringing the terminal bell (view source)
Revision as of 19:44, 17 September 2023
, 9 months ago→Joy: add
(→OCaml: add) |
(→Joy: add) |
||
Line 38:
swi ;Return to the monitor
.en</syntaxhighlight>
=={{header|8086 Assembly}}==▼
▲=={{header|8086 Assembly}}==
===Using stdout===
{{trans|X86 Assembly}}
Line 163:
=={{header|Ada}}==
<syntaxhighlight lang="ada">with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1;
Line 191 ⟶ 190:
=={{header|AWK}}==
<syntaxhighlight lang="awk">BEGIN {
print "\a" # Ring the bell
Line 232 ⟶ 230:
<syntaxhighlight lang="bbcbasic">VDU 7</syntaxhighlight>
=={{header|
<syntaxhighlight lang="bc">print "\a"</syntaxhighlight>
=={{header|beeswax}}==
<syntaxhighlight lang="beeswax">_7}</syntaxhighlight>
Line 261 ⟶ 258:
=={{header|C}}==
<syntaxhighlight lang="c">#include <stdio.h>
int main() {
Line 353 ⟶ 349:
writeln('\a');
}</syntaxhighlight>
=={{header|dc}}==▼
<syntaxhighlight lang="dc">7P</syntaxhighlight>▼
=={{header|Delphi}}==
Line 362 ⟶ 361:
Writeln(#7);
end.</syntaxhighlight>
▲=={{header|dc}}==
▲<syntaxhighlight lang="dc">7P</syntaxhighlight>
=={{header|E}}==
Line 399 ⟶ 395:
{{works with|GNU Forth}}
<syntaxhighlight lang="forth">#bell emit</syntaxhighlight>
{{works with|iForth}}
<syntaxhighlight lang="forth">^G emit</syntaxhighlight>
Line 431 ⟶ 425:
=={{header|Icon}} and {{header|Unicon}}==
Works on both Icon and Unicon.
Line 454 ⟶ 447:
}
}</syntaxhighlight>
=={{header|Joy}}==
<syntaxhighlight lang="joy">7 putch.</syntaxhighlight>
=={{header|Julia}}==
Line 693 ⟶ 689:
=={{header|Quackery}}==
On some platforms the bell will not ring until the output buffer is flushed e.g. by a cr/lf.
|