pub fn getchar() -> Option<i32>Expand description
Read a single character from the console.
Returns Some(c) where c is in 0..=255, or None if no character
is currently available. The call may block until a character arrives
depending on the backend.