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

#52 in Command-line interface

Download history 14348/week @ 2024-08-13 15349/week @ 2024-08-20 15363/week @ 2024-08-27 14870/week @ 2024-09-03 12190/week @ 2024-09-10 13047/week @ 2024-09-17 15730/week @ 2024-09-24 13585/week @ 2024-10-01 11758/week @ 2024-10-08 13305/week @ 2024-10-15 11122/week @ 2024-10-22 12315/week @ 2024-10-29 12425/week @ 2024-11-05 12475/week @ 2024-11-12 12195/week @ 2024-11-19 9975/week @ 2024-11-26

49,060 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–15MB
~201K SLoC