flush prompt

This commit is contained in:
Quaternions 2023-09-12 18:47:57 -07:00
parent 37f0dad7a1
commit a7554da1c5

View File

@ -382,10 +382,11 @@ fn interactive() -> Result<(), Box<dyn std::error::Error>>{
ScriptAction::Replace(*replace_id)
}else{
//interactive logic goes here
print!("unresolved source location={}\naction: ",get_full_name(&dom, script));
std::io::Write::flush(&mut std::io::stdout())?;
//load source into current.lua
std::fs::write("current.lua",source)?;
//prompt action in terminal
println!("unresolved source location={}",get_full_name(&dom, script));
//wait for input
let script_action;
loop{