pub fn flush() -> Result<()>
Expand description
Flushes stdout. When you do print! or term-basics-linux equivalent, it will not print immediately. flush() will make sure everything is printed first, before you do something else. Input fields flush themselves before the query for input.
ยงExample
use term_basics_linux as tbl;
print!("type: ");
tbl::flush().expect("oh no");