CLS

Section: Misc. Reference Manual Pages (utility )
Index Return to Main Contents
 

NAME

CLS - Clears the screen and sets the screen colors  

SYNOPSIS

CLS [attribute] [color] ["on"] [color]  

DESCRIPTION

CLS clears all text from the video screen and moves the curso to the upper left hand corner. Additionally, screen video attributes may be specified to change the color of the text on the screen.

CLS will attempt to detect if an ANSI driver is loaded. If so, CLS will perform an ANSI screen clear. If no ANSI driver is loaded, CLS will perform a BIOS screen clear.

The following attributes are valid, and affect foreground color:


      Normal, Bright, Underlined,
      Blinking, Reversed, Invisible

The following colors are available:


      Black, Red, Green, Yellow, Blue, Magenta, White  

OPTIONS


/A - Force CLS to perform an ANSI screen clear.


/B - Force CLS to perform a BIOS screen clear.


/R - Reset screen attributes to white characters on a black background. Useful if display is set to an obnoxious color set.


/S - Set screen attributes only, do not clear the screen. Useful for changing the color of text output from a batch file.  

AUTHOR

Morgan "Hannibal" Toal, based on code from James Hall and Peter Mikalajunas  

EXAMPLES

To clear the screen to cyan characters on a black background:


       CLS cyan on black


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
AUTHOR
EXAMPLES

This document was created by man2html, using the manual pages.
Time: 19:44:26 GMT, February 07, 2023