conf.rs: flush stdout in Ask() after printing

master
Geoff Beier 2021-11-15 16:48:01 +02:00 committed by Manos Pitsidianakis
parent 36e29cb6fd
commit 330a2b20ed
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,7 @@ impl Ask {
let mut handle = stdin.lock(); let mut handle = stdin.lock();
print!("{} [Y/n] ", &self.message); print!("{} [Y/n] ", &self.message);
let _ = io::stdout().flush();
loop { loop {
buffer.clear(); buffer.clear();
handle handle
@ -319,6 +320,7 @@ impl Ask {
} }
_ => { _ => {
print!("\n{} [Y/n] ", &self.message); print!("\n{} [Y/n] ", &self.message);
let _ = io::stdout().flush();
} }
} }
} }