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
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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