dont_disappear 1.0.1

Tiny crates that stops the console window form closing when the program finishes.
Documentation

Dont Disappear

Tiny crates that stops the console window form closing when the program finishes. pipeline status License Latest version downloads-badge

Why you need it.

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 many other consoles 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.

Features

Message then close with enter.

Prompts user with message "Press enter to close.", waits for the user to press enter then ends to program (closing the window). Add

extern crate dont_disappear;

to the top of your file and

dont_disappear::enter_to_continue();

to where your program ends

Custom message then close with enter.

Prompts user with a custom message, waits for the user to press enter then ends to program (closing the window)Add

extern crate dont_disappear;

to the top of your file and

dont_disappear::custom_enter_to_continue("Your custom message.".to_string());

to where your program ends

Docs

API docs

Downloads

Docs

If you are viewing this from GitHub then this is a read only copy. Please contribute to the GitLab copy here.