14 stable releases

3.0.0 Apr 11, 2024
2.0.1 Apr 4, 2023
2.0.0 Dec 28, 2022
1.0.11 Dec 28, 2022
1.0.6 Jul 22, 2021

#53 in Command-line interface

Download history 12582/week @ 2024-07-20 11973/week @ 2024-07-27 13100/week @ 2024-08-03 13231/week @ 2024-08-10 15385/week @ 2024-08-17 16392/week @ 2024-08-24 14426/week @ 2024-08-31 12485/week @ 2024-09-07 12423/week @ 2024-09-14 16101/week @ 2024-09-21 13692/week @ 2024-09-28 11778/week @ 2024-10-05 13654/week @ 2024-10-12 11466/week @ 2024-10-19 12071/week @ 2024-10-26 12695/week @ 2024-11-02

51,704 downloads per month
Used in 89 crates (43 directly)

Apache-2.0 OR MIT

155KB
695 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.72.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 = "3.0.0"
clearscreen::clear().unwrap();

Dependencies

~4–14MB
~197K SLoC