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