Terminal control/Clear the screen: Difference between revisions
Content added Content deleted
(Add Seed7 example) |
|||
Line 130: | Line 130: | ||
The [[regina]] interpreter supports the [[rexxcurses]] plugin, which provides the facility to clear the screen: |
The [[regina]] interpreter supports the [[rexxcurses]] plugin, which provides the facility to clear the screen: |
||
=={{header|Seed7}}== |
|||
The function ''clear'' clears the console window: |
|||
<lang seed7>$ include "seed7_05.s7i"; |
|||
include "console.s7i"; |
|||
const proc: main is func |
|||
local |
|||
var text: console is STD_NULL; |
|||
begin |
|||
console := open(CONSOLE); |
|||
clear(console); |
|||
# Terminal windows often restore the previous |
|||
# content, when a program is terminated. Therefore |
|||
# the program waits until Return/Enter is pressed. |
|||
readln; |
|||
end func;</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |