flush prompt
This commit is contained in:
parent
37f0dad7a1
commit
a7554da1c5
@ -382,10 +382,11 @@ fn interactive() -> Result<(), Box<dyn std::error::Error>>{
|
|||||||
ScriptAction::Replace(*replace_id)
|
ScriptAction::Replace(*replace_id)
|
||||||
}else{
|
}else{
|
||||||
//interactive logic goes here
|
//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
|
//load source into current.lua
|
||||||
std::fs::write("current.lua",source)?;
|
std::fs::write("current.lua",source)?;
|
||||||
//prompt action in terminal
|
//prompt action in terminal
|
||||||
println!("unresolved source location={}",get_full_name(&dom, script));
|
|
||||||
//wait for input
|
//wait for input
|
||||||
let script_action;
|
let script_action;
|
||||||
loop{
|
loop{
|
||||||
|
Loading…
Reference in New Issue
Block a user