diff --git a/src/main.rs b/src/main.rs index 0d52bca078..94acf9d63c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -362,9 +362,11 @@ fn main() -> Result<()> { ); } Ok(Signal::CtrlC) => { - println!("Ctrl-c"); + // `Reedline` clears the line content. New prompt is shown } Ok(Signal::CtrlD) => { + // When exiting clear to a new line + println!(); break; } Ok(Signal::CtrlL) => {