- Cls (computing)
cls (for clear screen) is a command used by the
command line interpreter s
andCOMMAND.COM
oncmd.exe DOS ,OS/2 andMicrosoft Windows operating systems to clear the screen or console window of commands and any output generated by them. It does not clear the user's history of commands, however. In other environments, like for instanceLinux andUnix the same functionality is provided by the "clear" command.While the ultimate origins of using the three-character string "cls" as the command to clear the screen likely predate
Microsoft 's use, this command was present before itsMS-DOS usage, in the embedded ROMBASIC dialects Microsoft wrote for early8-bit microcomputer s (such asTRS-80 Color BASIC ), where it served the same purpose. The MS-DOS dialects of BASIC written by Microsoft,BASICA andGW-BASIC , also have the "cls" command as a BASIC keyword. The "cls" command is also present in BASIC versions for Microsoft Windows, however this generally clears text printed on the form, rather than the whole screen or controls on the form.The command "cls" has appeared as a clear screen command in many other BASIC dialects and command line interpreters, because of its familiarity through being included in MS-DOS.
ee also
*
List of DOS commands References
* [http://technet.microsoft.com/en-us/library/bb490879.aspx Microsoft TechNet Cls article]
Wikimedia Foundation. 2010.