diff --git a/src/main.rs b/src/main.rs index e7a11a9..90085a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,14 @@ +use std::io::Write; + fn main() { - println!("Hello, world!"); + let mut user_input = String::new(); + let mut bytes_read = 1; + + while bytes_read != 0 { + print!("$ "); + std::io::stdout().flush().unwrap(); + bytes_read = std::io::stdin() + .read_line(&mut user_input) + .expect("error reading user input"); + } }