Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

CLS (command)

From Wikipedia, the free encyclopedia
cls
DevelopersDEC,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 (forclearscreen) is acommand used by thecommand-line interpretersCOMMAND.COM andcmd.exe onDOS,Digital ResearchFlexOS,[1]IBMOS/2,[2]Microsoft Windows[3] andReactOSoperating systems to clear the screen orconsole window of commands and any output generated by them. It does not clear the user'shistory of commands, however.The command is also available in theDECRT-11 operating system, in theopen-sourceMS-DOSemulatorDOSBox and in theEFI shell.[4] In other environments, such asLinux andUnix, the same functionality is provided by theclear command.

History

[edit]

The command is available inMS-DOS versions 2 (1983) and later.[5] While the ultimate origins of using the three-character stringCLS as the command to clear the screen likely predateMicrosoft's use, this command was present before its MS-DOS usage, in the embedded ROMBASIC dialects Microsoft wrote for early8-bitmicrocomputers (such asTRS-80Color BASIC), where it served the same purpose. The MS-DOS dialects of BASIC written by Microsoft,BASICA andGW-BASIC, also have theCLS command as a BASIC keyword - as do various non-Microsoft implementations of BASIC such asSinclair BASIC (1980), orBBC BASIC found on theBBC Micro computers (1981). TheCLS 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 commandCLS 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'sPC-MOS includes an implementation ofCLS.[6] Like the rest of the operating system, it is licensed under theGPL v3.[7]

DR DOS also includes an implementation of theCLS command.[8]

See also

[edit]

References

[edit]
  1. ^"FlexOS™ User's Guide Version 1.3"(PDF). November 1986. Archived fromthe original(PDF) on September 25, 2019. RetrievedOctober 25, 2025.
  2. ^"JaTomes Help - OS/2 Commands". Archived fromthe original on 2019-04-14. Retrieved2019-07-06.
  3. ^Microsoft TechNet Cls article
  4. ^"EFI Shells and Scripting".Intel. Retrieved2013-09-25.
  5. ^Wolverton, Van (2003).Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition.Microsoft Press.ISBN 0-7356-1812-7.
  6. ^PC-MOS User Guide
  7. ^Jansen, Roeland (8 February 2018)."pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources" – via GitHub.
  8. ^"DR DOS 6.0 User Guide Optimisation and Configuration Tips"(PDF). Archived fromthe original(PDF) on 2019-09-30. Retrieved2019-08-13.

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=CLS_(command)&oldid=1318761094"
Categories:

[8]ページ先頭

©2009-2026 Movatter.jp