| Crates.io | pause_console |
| lib.rs | pause_console |
| version | 0.2.0 |
| created_at | 2021-01-21 16:16:21.910742+00 |
| updated_at | 2024-01-29 18:17:51.181369+00 |
| description | Pauses the console |
| homepage | |
| repository | https://github.com/MeowningMaster/pause_console |
| max_upload_size | |
| id | 344934 |
| size | 2,408 |
Crate that brings functionality similar to c++'s system("pause")
use pause_console::pause_console;
// print "Press Enter to continue..." then wait till Enter pressed
pause_console!();
// same with custom message
pause_console!("Sample message");
// and you can format and output message
pause_console!("Sample message: {}", 1);
pause_console! does not prevent the user from entering characters other than Enter, they will be visible. This library is good for rapid prototyping or internal projects. For better user experience use crossterm.