implemented --step in v2

This commit is contained in:
Brian Coca 2015-07-23 20:47:24 -04:00
parent f6a08ce1ba
commit 88e1ef8c9b
4 changed files with 56 additions and 4 deletions

View file

@ -201,3 +201,11 @@ class Display:
self.display(new_msg, color='red', stderr=True)
self._errors[new_msg] = 1
def prompt(self, msg):
if sys.stdout.encoding:
msg = to_bytes(msg, sys.stdout.encoding)
else:
msg = to_bytes(msg)
return raw_input(msg)