Jump to content

Terminal control/Clear the screen: Difference between revisions

m
→‎Shell command: Don't think any shell is involved.
(→‎{{header|Go}}: add ansi, ncurses examples)
m (→‎Shell command: Don't think any shell is involved.)
Line 125:
 
=={{header|Go}}==
===ShellExternal command===
Probably most reliable way to clear the screen.
<lang go>package main
Line 139:
c.Run()
}</lang>
 
===ANSI escape code===
Simplest, if your terminal supports the ANSI code you want.
1,707

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.