Terminal control/Clear the screen: Difference between revisions
Content deleted Content added
add RPL |
PascalABC.NET} |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1,031:
<syntaxhighlight lang="pascal">clrscr;</syntaxhighlight>
<syntaxhighlight lang="pascal">page(output); { UCSD Pascal }</syntaxhighlight>
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
Console.Clear;
</syntaxhighlight>
=={{header|Perl}}==
Line 1,223 ⟶ 1,231:
(equivalent to <code>`clear`</code>)
<syntaxhighlight lang="ruby">puts "\e[H\e[2J"</syntaxhighlight>
Probably more platform-independent:
<syntaxhighlight lang="ruby">require 'io/console'
STDOUT.clear_screen
</syntaxhighlight>
=={{header|Rust}}==
Line 1,320 ⟶ 1,332:
=={{header|Wren}}==
<syntaxhighlight lang="
=={{header|XPL0}}==
|