#clear #cls #cli #terminal

clearscreen

Cross-platform terminal screen clearing

12 stable releases

2.0.0 Dec 28, 2022
1.0.11 Dec 28, 2022
1.0.10 May 31, 2022
1.0.9 Dec 2, 2021
1.0.2 Apr 28, 2021

#1 in #screen

Download history 9074/week @ 2022-11-30 7038/week @ 2022-12-07 5822/week @ 2022-12-14 5177/week @ 2022-12-21 8239/week @ 2022-12-28 9119/week @ 2023-01-04 7524/week @ 2023-01-11 7061/week @ 2023-01-18 8083/week @ 2023-01-25 6933/week @ 2023-02-01 7500/week @ 2023-02-08 7720/week @ 2023-02-15 6361/week @ 2023-02-22 6028/week @ 2023-03-01 7977/week @ 2023-03-08 6460/week @ 2023-03-15

28,119 downloads per month
Used in 52 crates (20 directly)

Apache-2.0 OR MIT

155KB
696 lines

Crate release version Crate license: Apache 2.0 or MIT CI status on main branch

ClearScreen

Cross-platform terminal screen clearing library.

  • API documentation.
  • Dual-licensed with Apache 2.0 and MIT.
  • Minimum Supported Rust Version: 1.60.0.
    • Only the last five stable versions are supported.
    • MSRV increases beyond that range at publish time will not incur major version bumps.

Tested with and tweaked for over 80 different terminals, multiplexers, SSH clients. See my research notes in the TERMINALS.md file.

Quick start

[dependencies]
clearscreen = "2.0.0"
clearscreen::clear().unwrap();

Dependencies

~1.7–2.6MB
~58K SLoC