Terminal control/Clear the screen: Difference between revisions
Terminal control/Clear the screen (view source)
Revision as of 11:44, 13 February 2024
, 3 months ago→{{header|Wren}}: Changed to Wren S/H
(add RPL) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
(One intermediate revision by one other user not shown) | |||
Line 1,223:
(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,324:
=={{header|Wren}}==
<syntaxhighlight lang="
=={{header|XPL0}}==
|