1 unstable release
0.1.0 | Aug 9, 2024 |
---|
#280 in Graphics APIs
23 downloads per month
3KB
Cargo.toml
alternate_screen_wraper = { version = "<current-version>", features = "crossterm" } # or other backand
main.rs
fn main() {
let alternate_screen = alternater_screen_wrapper::AlternateScreen::enter();
// ..do some work
let printable = // do other work
//
drop(alternate_screen);
println!("{printable}"); // it works
}
You can don't call drop manually. It will be dropped automatically when you exiting scope or panicing.
Dependencies
~0–8.5MB
~81K SLoC