Skip to content

Cross-platform terminal screen clearing library

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

watchexec/clearscreen

Repository files navigation

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();