getch-rs
getch for Windows and Unix.
Usage
Cargo.toml
[]
= "0.2"
main.rs
use Getch;
Examples
$ cargo run --example getch
Contributing
This project welcomes your PR and issues. For example, fixing bugs, adding features, refactoring, etc.
getch for Windows and Unix.
Cargo.toml
[dependencies]
getch-rs = "0.2"
main.rs
use getch_rs::Getch;
fn main() {
let g = Getch::new();
if let Ok(key) = g.getch() {
println!("{:?}", key);
}
}
$ cargo run --example getch
This project welcomes your PR and issues. For example, fixing bugs, adding features, refactoring, etc.