Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 History  





2 See also  





3 References  





4 Further reading  





5 External links  














CLS (command)






Français


Polski
Русский

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


cls
Developer(s)DEC, Microsoft, IBM, TSL, DR, Novell, Toshiba, ReactOS Contributors
Operating systemRT-11, DOS, MSX-DOS, FlexOS, PC-MOS, SISNE plus, OS/2, Windows, ReactOS, SymbOS, DexOS
PlatformCross-platform
TypeCommand
LicensePC-MOS: GPL v3
ReactOS: GPL v2

Incomputing, CLS (for clear screen) is a command used by the command-line interpreters COMMAND.COM and cmd.exeonDOS, 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[edit]

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 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 CLS command.[8]

See also[edit]

References[edit]

  • ^ "JaTomes Help - OS/2 Commands". Archived from the original on 2019-04-14. Retrieved 2019-07-06.
  • ^ 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" (PDF). Archived from the original (PDF) on 2019-09-30. Retrieved 2019-08-13.
  • Further reading[edit]

    External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=CLS_(command)&oldid=1210876260"

    Categories: 
    Windows commands
    Internal DOS commands
    MSX-DOS commands
    OS/2 commands
    ReactOS commands
    Hidden categories: 
    Webarchive template wayback links
    All articles with bare URLs for citations
    Articles with bare URLs for citations from March 2022
    Articles with PDF format bare URLs for citations
     



    This page was last edited on 28 February 2024, at 19:51 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki