getch-rs 0.1.3

`getch` for Windows and Unix.
Documentation

getch-rs

Actions Status Crates.io Documentation License

getch for Windows and Unix.

Usage

Cargo.toml

[dependencies]
getch-rs = "0.1"

main.rs

use getch_rs::Getch;

fn main() {
    let g = Getch::new();

    if let Ok(key) = g.getch() {
        println!("{:?}", key);
    }
}

Examples

$ cargo run --example getch