forked from StrafesNET/map-tool
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)
|
||||
}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{
|
||||
|
Loading…
Reference in New Issue
Block a user