devela::all

Function linux_get_char

Source
pub fn linux_get_char() -> Option<char> 
Available on crate features unsafe_syscall and linux only.
Expand description

Gets a single char from stdin, or None if the bytes are not valid utf-8.

§Error Handling

If the read fails, it prints an error message and exits with status code 11.