Show prompt

This commit is contained in:
Yash Karandikar 2021-09-17 12:58:37 -05:00
parent 1583671f84
commit ce99a355f3
2 changed files with 5 additions and 0 deletions

View file

@ -43,6 +43,9 @@ pub extern "C" fn _start() {
println!("KarxOS!");
change_color(Color::White, Color::Black);
// First prompt, future prompts will be handled by shell::evaluate
print!(">>> ");
#[cfg(test)]
test_main();

View file

@ -1,4 +1,5 @@
use crate::println;
use crate::print;
pub fn evaluate(command: &str) {
let res = command.trim();
@ -6,5 +7,6 @@ pub fn evaluate(command: &str) {
println!();
println!();
println!("[ {:#?} ]", res);
print!(">>> ");
}
}