From 25b6e941177bcc775c002c2516d6b6920d3a60c6 2016-12-22 06:13:09 From: sachet-mittal Date: 2016-12-22 06:13:09 Subject: [PATCH] Insert a new line after catching KeyboardException in ask_yes_no Issue: 10098 --- diff --git a/IPython/utils/io.py b/IPython/utils/io.py index 6e86670..29eae63 100644 --- a/IPython/utils/io.py +++ b/IPython/utils/io.py @@ -173,6 +173,7 @@ def ask_yes_no(prompt, default=None, interrupt=None): except KeyboardInterrupt: if interrupt: ans = interrupt + print("\r") except EOFError: if default in answers.keys(): ans = default