Terminal control/Clear the screen: Difference between revisions

Content added Content deleted
(add task to ARM64 assembly Raspberry Pi)
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 2: Line 2:
Clear the terminal window.
Clear the terminal window.
[[Terminal Control::task| ]]
[[Terminal Control::task| ]]

=={{header|6502 Assembly}}==
=={{header|6502 Assembly}}==
{{works with|http://vice-emu.sourceforge.net/ VICE}}
{{works with|http://vice-emu.sourceforge.net/ VICE}}
Line 69: Line 70:
bne clearscreen
bne clearscreen
</lang>
</lang>

=={{header|AArch64 Assembly}}==
=={{header|AArch64 Assembly}}==
{{works with|as|Raspberry Pi 3B version Buster 64 bits}}
{{works with|as|Raspberry Pi 3B version Buster 64 bits}}
Line 127: Line 129:
.include "../includeARM64.inc"
.include "../includeARM64.inc"
</lang>
</lang>

=={{header|Ada}}==
=={{header|Ada}}==


Line 212: Line 215:
Reference: http://www.autohotkey.com/forum/topic76532.html
Reference: http://www.autohotkey.com/forum/topic76532.html
<lang AHK>RunWait %comspec% /c cls</lang>
<lang AHK>RunWait %comspec% /c cls</lang>

=={{header|AWK}}==
=={{header|AWK}}==
<lang awk>system("clear")</lang>
<lang awk>system("clear")</lang>
Line 314: Line 318:
GOBACK
GOBACK
.</lang>
.</lang>

=={{header|Comal}}==
=={{header|Comal}}==
<lang Comal>PAGE</lang>
<lang Comal>PAGE</lang>
Line 611: Line 616:
<lang j>smwrite_jijs_ ''</lang>
<lang j>smwrite_jijs_ ''</lang>


=={{Header|Java}}==
=={{header|Java}}==
Using the ANSI escape sequence:
Using the ANSI escape sequence:
<lang java>public class Clear
<lang java>public class Clear
Line 629: Line 634:
}</lang>
}</lang>


=={{Header|jq}}==
=={{header|jq}}==
<lang jq>"\u001B[2J"</lang>
<lang jq>"\u001B[2J"</lang>
'''Example''':
'''Example''':
Line 723: Line 728:
checkit
checkit
</lang>
</lang>



=={{header|Mathematica}}==
=={{header|Mathematica}}==
Line 787: Line 791:
$clear = $terminal->Tputs('cl');
$clear = $terminal->Tputs('cl');
print $clear;</lang>
print $clear;</lang>

=={{header|Perl 6}}==
<lang perl6>sub clear { print qx[clear] }
clear;</lang>


=={{header|Phix}}==
=={{header|Phix}}==
Line 865: Line 865:
(void (charterm-clear-screen)))
(void (charterm-clear-screen)))
</lang>
</lang>

=={{header|Raku}}==
(formerly Perl 6)
<lang perl6>sub clear { print qx[clear] }
clear;</lang>


=={{header|Retro}}==
=={{header|Retro}}==
Line 918: Line 923:
The [[regina]] interpreter supports the [[rexxcurses]] plugin, which provides a facility to clear the screen
The [[regina]] interpreter supports the [[rexxcurses]] plugin, which provides a facility to clear the screen
(not shown here).
(not shown here).

=={{header|Scala}}==
{{libheader|Scala}}
<lang Scala>object Cls extends App {print("\033[2J")}</lang>


=={{header|Ring}}==
=={{header|Ring}}==
Line 939: Line 940:


<lang rust>print!("{}[2J", 27 as char);</lang>
<lang rust>print!("{}[2J", 27 as char);</lang>

=={{header|Scala}}==
{{libheader|Scala}}
<lang Scala>object Cls extends App {print("\033[2J")}</lang>


=={{header|Seed7}}==
=={{header|Seed7}}==