Crates.io | getch-rs |
lib.rs | getch-rs |
version | 0.2.0 |
source | src |
created_at | 2023-02-01 01:33:18.0406 |
updated_at | 2024-02-03 09:18:56.545282 |
description | `getch` for Windows and Unix. |
homepage | |
repository | https://github.com/kumavale/getch-rs |
max_upload_size | |
id | 773165 |
size | 21,606 |
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.