Terminal control/Clear the screen: Difference between revisions

Content added Content deleted
(→‎{{header|Go}}: add ansi, ncurses examples)
m (→‎Shell command: Don't think any shell is involved.)
Line 125: Line 125:


=={{header|Go}}==
=={{header|Go}}==
===Shell command===
===External command===
Probably most reliable way to clear the screen.
Probably most reliable way to clear the screen.
<lang go>package main
<lang go>package main
Line 139: Line 139:
c.Run()
c.Run()
}</lang>
}</lang>

===ANSI escape code===
===ANSI escape code===
Simplest, if your terminal supports the ANSI code you want.
Simplest, if your terminal supports the ANSI code you want.