Print a newline after the retry question

This commit is contained in:
Roey Darwish Dror
2018-11-07 14:38:27 +02:00
committed by Your Name
parent 6108637477
commit 590d166bac
2 changed files with 6 additions and 2 deletions

View File

@@ -78,7 +78,9 @@ impl Terminal {
.bold()
)).ok();
match self.term.read_char()? {
let answer = self.term.read_char()?;
println!();
match answer {
'y' | 'Y' => return Ok(true),
'n' | 'N' | '\r' | '\n' => return Ok(false),
_ => (),