alternate_screen_wrapper 0.1.1

enter end leave alternate screen in one line
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Cargo.toml
``` toml
alternate_screen_wraper = { version = "<current-version>", features = "crossterm" } # or other backand
```

main.rs
``` rust
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.