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—Black

1—Blue

2—Green

3—Cyan

4—Red

5—Magenta

6—Yellow

7—Light gray

foreground

Specifies a new foreground color from the following options:

0—Black

1—Blue

2—Green

3—Cyan

4—Red

5—Magenta

6—Yellow

7—Light gray

8—Dark gray

9—Light blue

10—Light green

11—Light cyan

12—Light red

13—Light magenta

14—Yellow

15—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