Crates.io | dont_disappear |
lib.rs | dont_disappear |
version | 3.0.1 |
source | src |
created_at | 2018-09-17 13:43:27.901717 |
updated_at | 2020-01-03 16:30:13.417955 |
description | Tiny crate that prevents the console window from closing when the program finishes. |
homepage | http://efunb.com/ |
repository | https://gitlab.com/efunb/dont_disappear |
max_upload_size | |
id | 85144 |
size | 281,934 |
Tiny crate that prevents the console window from closing when the program finishes.
When making an app without a GUI sometimes you display some information before the program ends. If you send this program to someone and they run it in the windows command prompt or some other console the window may close before showing the data. This crate allows the user to wait until they have read the data before they close the window.
Don't Disappear in action preventing data form disappearing when a program ends.
If you run into any issues or need help with using dont_disappear
in your project please email incoming+efunb/dont_disappear@incoming.gitlab.com
This is one example of one of the ways you could use one of the dont_disappear
functions.
extern crate dont_disappear;
fn main() {
println!("Here is some data");
dont_disappear::any_key_to_continue::default();
}
cargo run --example any_key_to_continue
cargo run --example enter_to_continue
cargo run --example press_close
This project uses crossterm in the any_key_to_continue
module.
If you are viewing this from GitHub then this is a read only copy. Please contribute to the GitLab copy here.