Function dont_disappear::custom_enter_to_continue [−][src]
pub fn custom_enter_to_continue(msg: String)
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