Crate dont_disappear
source ·Expand description
Tiny crates that stops the console window form closing when the program finishes.
Modules
The
any_key_to_continue
module responds to any key press, however, can return strange characters when Ctrl-c or Delete keys are used.Using the
enter_to_continue
module makes is the simplest way of using this crate, however, the only key you can use with it is the enter key.Functions
Press close only with window manager or Ctrl-c.