getch-rs

Crates.iogetch-rs
lib.rsgetch-rs
version0.2.0
sourcesrc
created_at2023-02-01 01:33:18.0406
updated_at2024-02-03 09:18:56.545282
description`getch` for Windows and Unix.
homepage
repositoryhttps://github.com/kumavale/getch-rs
max_upload_size
id773165
size21,606
Naoki Kumagai (kumavale)

documentation

README

getch-rs

Actions Status Crates.io Documentation License

getch for Windows and Unix.

Usage

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);
    }
}

Examples

$ cargo run --example getch

Contributing

This project welcomes your PR and issues. For example, fixing bugs, adding features, refactoring, etc.

Commit count: 17

cargo fmt