Terminal control/Clear the screen: Difference between revisions

From Rosetta Code
Content added Content deleted
(Unix shell)
(→‎{{header|PureBasic}}: Added PureBasic)
Line 12: Line 12:


CLS
CLS
=={{header|PureBasic}}==
Clears the whole console content using the current background color.
<lang PureBasic>ClearConsole()</lang>


=={{header|UNIX Shell}}==
=={{header|UNIX Shell}}==

Revision as of 17:45, 4 October 2010

Task
Terminal control/Clear the screen
You are encouraged to solve this task according to the task description, using any language you may know.

Clear the terminal window

BASIC

Works with: QBasic
Works with: Locomotive Basic
Works with: ZX Spectrum Basic

<lang qbasic>CLS</lang>

Batch File

CLS

PureBasic

Clears the whole console content using the current background color. <lang PureBasic>ClearConsole()</lang>

UNIX Shell

Works with: Bourne Shell

<lang bash>clear</lang>