Commit a002a249 by Michael DeHaan

Merge pull request #4250 from bbhoss/devel

Allow storing input from user in a pause prompt
parents 2ed80383 3ee7b177
......@@ -101,7 +101,7 @@ class ActionModule(object):
# Clear out any unflushed buffered input which would
# otherwise be consumed by raw_input() prematurely.
tcflush(sys.stdin, TCIFLUSH)
raw_input(self.prompt)
self.result['user_input'] = raw_input(self.prompt)
except KeyboardInterrupt:
while True:
print '\nAction? (a)bort/(c)ontinue: '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment