rprompt
allows you to easily prompt for input in a console application on Linux, BSD, OSX and Windows.
rprompt
rprompt
is currently being maintained as a side-project, during nights and weekends, next to my full-time job. I am looking for a way to sustain my work on open source. If you find value in what I do and you would like to contribute, please consider:
Add rprompt
as a dependency in Cargo.toml:
toml
[dependencies]
rprompt = "1.0"
Use rprompt
within your code:
```rust extern crate rprompt;
fn main() { // Prompt for a reply on STDOUT let reply = rprompt::promptreplystdout("Password: ").unwrap(); println!("Your reply is {}", reply);
// Prompt for a reply on STDERR
let reply = rprompt::prompt_reply_stderr("Password: ").unwrap();
println!("Your reply is {}", reply);
// Read a reply without prompt
let reply = rprompt::read_reply().unwrap();
println!("Your reply is {}", reply);
} ```
The full API documentation is available at https://docs.rs/rprompt.
We welcome contribution from everyone. Feel free to open an issue or a pull request at any time.
Here's a list of existing rprompt
contributors:
Thank you very much for your help! :smiley: :heart:
The source code is released under the Apache 2.0 license.