Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
CLS (command)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==History== The command is available in [[MS-DOS]] versions 2 (1983) and later.<ref name="RUNNINGMSDOS">{{Cite book|author-last=Wolverton|author-first=Van|title=Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition|date=2003|publisher=[[Microsoft Press]]|isbn=0-7356-1812-7}}</ref> While the ultimate origins of using the three-character string <code>CLS</code> 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]] [[microcomputer]]s (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 <code>CLS</code> 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 <code>CLS</code> 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 <code>CLS</code> 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 <code>CLS</code>.<ref>[https://github.com/roelandjansen/pcmos386v501/blob/master/DOCS/v4/PCMOSv4UserManual.pdf PC-MOS User Guide]</ref> Like the rest of the operating system, it is licensed under the [[GPL v3]].<ref>{{cite web|url=https://github.com/roelandjansen/pcmos386v501|title=pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources|first=Roeland|last=Jansen|date=8 February 2018|via=GitHub}}</ref> [[DR DOS]] also includes an implementation of the {{code|CLS}} command.<ref name="drdos6userguide">{{Cite web |url=https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf |title=DR DOS 6.0 User Guide Optimisation and Configuration Tips |access-date=2019-08-13 |archive-url=https://web.archive.org/web/20190930135943/http://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf |archive-date=2019-09-30 |url-status=dead }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)