14 stable releases

new 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

#37 in Command-line interface

Download history 40966/week @ 2023-12-23 40227/week @ 2023-12-30 32278/week @ 2024-01-06 31138/week @ 2024-01-13 27835/week @ 2024-01-20 25415/week @ 2024-01-27 24606/week @ 2024-02-03 22284/week @ 2024-02-10 20000/week @ 2024-02-17 18928/week @ 2024-02-24 21552/week @ 2024-03-02 21796/week @ 2024-03-09 21576/week @ 2024-03-16 20571/week @ 2024-03-23 17861/week @ 2024-03-30 14877/week @ 2024-04-06

78,929 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
~203K SLoC