Skip to content
Snippets Groups Projects
Commit 986d5227 authored by Seblu's avatar Seblu
Browse files

ctrl+d and ctrl+c in ask don't ask like typing enter

parent c0d850b4
No related branches found
No related tags found
No related merge requests found
......@@ -146,8 +146,13 @@ class Printer(object):
raise cliError("Unable to ask question in non-interactive mode")
h = list(self.history)
self.history.clear()
r = ""
try:
r = self.getline(prompt)
except EOFError:
pass
except KeyboardInterrupt:
pass
finally:
self.history.load(h)
return r
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment