alternate_screen_wrapper

Crates.ioalternate_screen_wrapper
lib.rsalternate_screen_wrapper
version0.1.1
sourcesrc
created_at2024-08-09 15:09:27.195498
updated_at2024-10-03 05:51:11.357625
descriptionenter end leave alternate screen in one line
homepage
repository
max_upload_size
id1330999
size4,143
sinepitc (sineptic)

documentation

README

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.

Commit count: 0

cargo fmt