mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user