Show prompt
This commit is contained in:
parent
1583671f84
commit
ce99a355f3
|
@ -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();
|
||||
|
||||
|
|
|
@ -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!(">>> ");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue