Fix colorama/readline collision

Using autoreset=True in colorama's init function, causes it to wrap
stdin.
This is problematic because readline also messes with stdin, and
causes readline to stop working.

The solution is to simply not use autoreset=True, and then (at least
on non-windows platforms) stdin will not be wrapped
This commit is contained in:
Joey Geralnik
2015-03-21 21:42:15 +02:00
parent 2054f92829
commit af3df301ad
+1 -1
View File
@@ -22,7 +22,7 @@ def await_enter():
class ConsoleApplication(object):
def __init__(self, run_until_return=await_enter):
colorama.init(autoreset=True)
colorama.init()
parser = OptionParser(usage=self._usage())
parser.add_option("-U", "--usb", help="connect to USB device",