sys.stdout = ColoredFile(sys.stdout, '\033[1;3%sm' % stdout_color)
sys.stderr = ColoredFile(sys.stderr, '\033[31m') # red
+ def myinput(prompt=None):
+ save_stdout = sys.stdout
+ sys.stdout = sys.__stdout__
+ result = builtin_input(prompt)
+ sys.stdout = save_stdout
+ return result
+
+ try:
+ builtins.raw_input
+ except AttributeError: # PY3
+ builtin_input = builtins.input
+ builtins.input = myinput
+ else:
+ builtin_input = builtins.raw_input
+ builtins.raw_input = myinput
+
break
try: