Function term_basics_linux::getch

source ·
pub fn getch() -> u8
Expand description

Reads a char from keyboard input. Returns the first byte, does not wait for the user to press enter.

Example

use term_basics_linux as tbl;
println!("Press any key...");
let anykey = tbl::getch();