| 1 | [](https://crates.io/crates/clearscreen) |
| 2 | [][copyright] |
| 3 | [](https://github.com/watchexec/clearscreen/actions/workflows/main.yml) |
| 4 | |
| 5 | # ClearScreen |
| 6 | |
| 7 | _Cross-platform terminal screen clearing library._ |
| 8 | |
| 9 | - **[API documentation][docs]**. |
| 10 | - [Dual-licensed][copyright] with Apache 2.0 and MIT. |
| 11 | - Minimum Supported Rust Version: 1.79.0. |
| 12 | - Only the last five stable versions are supported. |
| 13 | - MSRV increases beyond that range at publish time will not incur major version bumps. |
| 14 | |
| 15 | [copyright]: ./COPYRIGHT |
| 16 | [docs]: https://docs.rs/clearscreen |
| 17 | |
| 18 | Tested with and tweaked for over 80 different terminals, multiplexers, SSH clients. |
| 19 | See my research notes in the [TERMINALS.md](./TERMINALS.md) file. |
| 20 | |
| 21 | ## Quick start |
| 22 | |
| 23 | ```toml |
| 24 | [dependencies] |
| 25 | clearscreen = "4.0.2" |
| 26 | ``` |
| 27 | |
| 28 | ```rust |
| 29 | clearscreen::clear().unwrap(); |
| 30 | ``` |