https://github.com/watchexec/clearscreen
Cross-platform terminal screen clearing library
https://github.com/watchexec/clearscreen
clear cli cls screen terminal
Last synced: 11 months ago
JSON representation
Cross-platform terminal screen clearing library
- Host: GitHub
- URL: https://github.com/watchexec/clearscreen
- Owner: watchexec
- License: other
- Created: 2021-04-25T03:49:08.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-25T11:50:21.000Z (12 months ago)
- Last Synced: 2025-06-25T12:41:02.576Z (12 months ago)
- Topics: clear, cli, cls, screen, terminal
- Language: Rust
- Homepage: https://docs.rs/clearscreen
- Size: 313 KB
- Stars: 59
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
- Citation: CITATION.cff
Awesome Lists containing this project
README
[](https://crates.io/crates/clearscreen)
[][copyright]
[](https://github.com/watchexec/clearscreen/actions/workflows/main.yml)
# ClearScreen
_Cross-platform terminal screen clearing library._
- **[API documentation][docs]**.
- [Dual-licensed][copyright] with Apache 2.0 and MIT.
- Minimum Supported Rust Version: 1.79.0.
- Only the last five stable versions are supported.
- MSRV increases beyond that range at publish time will not incur major version bumps.
[copyright]: ./COPYRIGHT
[docs]: https://docs.rs/clearscreen
Tested with and tweaked for over 80 different terminals, multiplexers, SSH clients.
See my research notes in the [TERMINALS.md](./TERMINALS.md) file.
## Quick start
```toml
[dependencies]
clearscreen = "4.0.2"
```
```rust
clearscreen::clear().unwrap();
```