CLS (command)

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.

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
TypeCommand

History

The command is available in MS-DOS versions 2 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. 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 6.0 also includes an implementation of the CLS command.[8]

gollark: Interesting fact: Feature wise, AV1 is specifically designed for real-time applications (especially WebRTC) and higher resolutions (wider color gamuts, higher frame rates, UHD) than typical usage scenarios of the current generation (H.264) of video formats, where it is expected to achieve its biggest efficiency gains. It is therefore planned to support the color space from ITU-R Recommendation BT.2020 and up to 12 bits of precision per color component. AV1 is primarily intended for lossy encoding, although lossless compression is supported as well.
gollark: Does anyone?
gollark: It might be for Verilog.
gollark: On Macos, yes.
gollark: It *cannot* compile really fast, the compiler is a horrible assemblage of broken regices, the automatic memory management just leaks, C to V translation has not been demonstrated to work usefully.

See also

References

  1. http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
  2. http://www.jatomes.com/Help/Os2Cmd.php#CLS
  3. Microsoft TechNet Cls article
  4. "EFI Shells and Scripting". Intel. Retrieved 2013-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 from the original (PDF) on 2019-09-30. Retrieved 2019-08-13.

Further reading

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.