diff --git a/iroh/src/commands/repl.rs b/iroh/src/commands/repl.rs index 6caa4474da..81b19d21d1 100644 --- a/iroh/src/commands/repl.rs +++ b/iroh/src/commands/repl.rs @@ -65,7 +65,10 @@ impl Repl { Some(ReplCmd::Rpc(cmd)) => self.cmd_tx.blocking_send((cmd, reply_tx))?, } } - Err(ReadlineError::Interrupted | ReadlineError::Eof) => break, + Err(ReadlineError::Interrupted) => { + println!("KeyboardInterrupt (press Ctrl-D to exit)"); + continue; + } Err(ReadlineError::WindowResized) => continue, Err(err) => return Err(err.into()), }