# getch-rs
[](https://github.com/kumavale/getch-rs/actions)
[](https://crates.io/crates/getch-rs)
[](https://docs.rs/getch-rs/)
[](LICENSE)
`getch` for Windows and Unix.
## Usage
Cargo.toml
```toml
[dependencies]
getch-rs = "0.1"
```
main.rs
```rust
use getch_rs::Getch;
fn main() {
let g = Getch::new();
if let Ok(key) = g.getch() {
println!("{:?}", key);
}
}
```
## Examples
```
$ cargo run --example getch
```