-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing terminal::pause() functinality #39
Comments
Yea, seems a nice function to have. I'll investigate further into it. |
I will make the follwing enum:
the user will be able to call:
If you have better names our ideas I like to hear it. I'll be releasing it this or next week. |
Seems fine to me! |
How to achieve this capability for now? Four years have passed, and the terminal::pause function seems to have disappeared... |
For input, reading refer to |
|
So apparently doing the equivalent of C's
System('pause')
in Rust is a bit harder than it should be, as you can see in this discussion.I just thought that since the focus of this crate is cross-platform terminal functionality and this is such a common thing to do (Press any key to continue...), maybe it could get implemented as a simple function like
terminal::pause()
or something along this lines.If you think
pause()
is a bit too specific,terminal::read_char()
orstdin().read_char()
would be nice too.The text was updated successfully, but these errors were encountered: