5 releases

0.2.0 Jan 29, 2024
0.1.3 Apr 27, 2021
0.1.2 Jan 21, 2021
0.1.1 Jan 21, 2021
0.1.0 Jan 21, 2021

#7 in #pause

40 downloads per month

MIT/Apache

3KB

Description

Crate that brings functionality similar to c++'s system("pause")

Usage

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);

Caveats

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.

No runtime deps