This commit is contained in:
2026-05-15 20:09:11 -04:00
parent cdcbbf418c
commit b4c500ad10
+6
View File
@@ -1,5 +1,7 @@
mod data; mod data;
mod solve; mod solve;
use std::io::Write;
pub use data::*; pub use data::*;
pub use solve::*; pub use solve::*;
@@ -16,6 +18,8 @@ fn main() {
]; ];
usage(); usage();
print_priority(&priority); print_priority(&priority);
print!("> ");
let _ = std::io::stdout().flush();
let input = std::io::stdin(); let input = std::io::stdin();
for line in input.lines() { for line in input.lines() {
let Ok(line) = line else { let Ok(line) = line else {
@@ -33,6 +37,8 @@ fn main() {
println!("unknown command {cmd}"); println!("unknown command {cmd}");
} }
} }
print!("> ");
let _ = std::io::stdout().flush();
} }
} }