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

#36 in Command-line interface

Download history 40597/week @ 2023-12-25 38110/week @ 2024-01-01 31812/week @ 2024-01-08 29892/week @ 2024-01-15 27225/week @ 2024-01-22 25517/week @ 2024-01-29 23930/week @ 2024-02-05 22093/week @ 2024-02-12 18690/week @ 2024-02-19 19305/week @ 2024-02-26 21784/week @ 2024-03-04 21991/week @ 2024-03-11 21297/week @ 2024-03-18 20002/week @ 2024-03-25 17447/week @ 2024-04-01 11187/week @ 2024-04-08

72,162 downloads per month
Used in 76 crates (35 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–16MB
~201K SLoC