getchar

Function getchar 

Source
pub fn getchar() -> Option<i32>
Expand description

Non-blocking read of a single character from the console.

Returns Some(c) where c is in 0..=127, or None if no character is currently available.