[−][src]Function term_basics_linux::getch
pub fn getch() -> u8
Returns the character as u8 typed by the user. It will return immediately after being typed, without the user pressing 'enter'.
Example
use term_basics_linux as tbl; //print user input until spacebar is pressed loop{ let x = tbl::getch(); if x == 32 { break; } print!("{}", x as char); }