CLS (command)
Template:Short description
{{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other{{#invoke:Check for conflicting parameters|check
| template = Template:Infobox software
| cat = Template:Main other
| logo size; logo_size
| logo class; logo_class
| logo alt; logo_alt
| logo title; logo_title
| logo caption; logo_caption
| screenshot size; screenshot_size
| screenshot upright; screenshot_upright
| screenshot class; screenshot_class
| screenshot alt; screenshot_alt
| screenshot title; screenshot title
| latest release version; latest_release_version
| latest release date; latest_release_date
| latest preview version; latest_preview_version
| latest preview date; latest_preview_date
| latest release version; latest_release_version
| latest release date; latest_release_date
| latest preview version; latest_preview_version
| latest preview date; latest_preview_date
| programming language; programming_language
| operating system; operating_system
}}
In computing, CLS (for clear screen) is a command used by the command-line interpreters COMMAND.COM and cmd.exe on DOS, Digital Research FlexOS,[1] IBM OS/2,[2] Microsoft Windows[3] 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.[4] In other environments, such as Linux and Unix, the same functionality is provided by the clear command.
History
The command is available in MS-DOS versions 2 (1983) and later.[5] 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 Sinclair BASIC (1980), or BBC BASIC found on the BBC Micro computers (1981). 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.
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.
The Software Link's PC-MOS includes an implementation of CLS.[6] Like the rest of the operating system, it is licensed under the GPL v3.[7]
DR DOS also includes an implementation of the <syntaxhighlight lang="text" class="" style="" inline="1">CLS</syntaxhighlight> command.[8]
See also
References
Further reading
External links
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ Microsoft TechNet Cls article
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ Template:Cite book
- ↑ PC-MOS User Guide
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}