1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::io::{
stdin,
stdout,
Read,
Write,
};
/// the old C style system pause
pub fn pause() {
let mut stdout = stdout();
stdout.write(b"Press Enter to continue...").unwrap();
stdout.flush().unwrap();
stdin().read(&mut [0]).unwrap();
}