press-btn-continue-0.1.0 has been yanked.
Press any button to continue
Small crate that gives an easy access to the classic Windows "Press any key to continue" console prompt.
There are currently no way to implement this using Rusts standard library. The closest you can get is to read one character from stdin but the user has to press "ENTER" to do that so you essentially get "Press ENTER to continue..." doing like this:
println!;
let buffer = &mut ;
stdin.read_exact.unwrap;
This crate provides only one method called wait
which progresses on any
keypress.
Compatability
As of now this library only compiles on Windows but I'd be happy to add support for other platforms as well later on.
Dependencies
There are no external dependencies. I try to keep this library as lightweight and transparent as possible (easy to review, and adds very little to compile times).