Terminal control/Clear the screen: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (Added Arturo implementation) |
(add Standard ML) |
||
Line 1,081: | Line 1,081: | ||
=={{header|SPL}}== |
=={{header|SPL}}== |
||
<lang spl>#.clear()</lang> |
<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}}== |
=={{header|Stata}}== |