Function console_utils::read::read_key

source ·
pub fn read_key() -> Option<Key>
Expand description

Read Key Function

The read_key function reads a single key event from the console input and returns a Key enum.

Examples

use console_utils::read::{Key, read_key};

// Cross-platform key reading example
let key = read_key();

println!("Pressed key: {:?}", key);