CLS (for clear screen) is a command used by the command-line interpreters
cmd.exe on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS 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.
The command is also available in the DEC RT-11 operating system, in the open-source MS-DOS emulator DOSBox and in the EFI shell. In other environments, such as Linux and Unix, the same functionality is provided by the
|Developer(s)||DEC, Microsoft, IBM, TSL, DR, Novell, ReactOS Contributors|
|Operating system||RT-11, DOS, FlexOS, PC-MOS, OS/2, Windows, ReactOS, SymbOS, DexOS|
The command is available in MS-DOS versions 2 and later. 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 its MS-DOS usage, in the embedded ROM BASIC dialects Microsoft wrote for early 8-bit microcomputers (such as TRS-80 Color BASIC), where it served the same purpose. The MS-DOS dialects of BASIC written by Microsoft, BASICA and GW-BASIC, also have the
CLS command as a BASIC keyword - as do various non-Microsoft implementations of BASIC such as BBC BASIC found on the BBC Micro computers. 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 window or controls on the form.
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.
|Wikibooks has a book on the topic of: Guide to Windows Commands|
- Microsoft TechNet Cls article
- "EFI Shells and Scripting". Intel. Retrieved 2013-09-25.
- Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
- PC-MOS User Guide
- Jansen, Roeland (8 February 2018). "pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources" – via GitHub.
- DR DOS 6.0 User Guide Optimisation and Configuration Tips
- Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1556152894.
- Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0078818714.
- Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O'Reilly. ISBN 978-0-596-00148-3.
|This Microsoft Windows article is a stub. You can help Wikipedia by expanding it.|