Terminal control/Clear the screen: Difference between revisions
Terminal control/Clear the screen (view source)
Revision as of 21:25, 28 February 2021
, 3 years agoadd Standard ML
Drkameleon (talk | contribs) (Added Arturo implementation) |
(add Standard ML) |
||
Line 1,081:
=={{header|SPL}}==
<lang spl>#.clear()</lang>
=={{header|Standard ML}}==
{{works with|Unix}}
<lang sml>fun clearScreen () =
let
val strm = TextIO.openOut (Posix.ProcEnv.ctermid ())
in
TextIO.output (strm, "\^[[H\^[[2J");
TextIO.closeOut strm
end</lang>
=={{header|Stata}}==
|