cls
Syntax
cls[background][foreground] | [-sfo]
Description Clears the console output and optionally changes the background and foreground color.
Options
background
Specifies a new background color from the following options:
0
—Black1
—Blue2
—Green3
—Cyan4
—Red5
—Magenta6
—Yellow7
—Light grayforeground
Specifies a new foreground color from the following options:
0
—Black1
—Blue2
—Green3
—Cyan4
—Red5
—Magenta6
—Yellow7
—Light gray8
—Dark gray9
—Light blue10
—Light green11
—Light cyan12
—Light red13
—Light magenta14
—Yellow15
—White-sfo
Displays current console color settings in Standard Format Output
Usage If background color is not specified, or if background and foreground colors are not specified, the colors do not change. When
-sfo
flag is specified, console output is not cleared. The console displays current console foreground and background attribute settings.
Examples
To clear the standard output without changing the background or foreground color:
fs0:\> cls
To clear the standard output and change the background color to cyan:
fs0:\> cls 3 To clear the standard output and change the background to black and the foreground to white:
fs0:\> cls 0 15