mirror of
https://github.com/cemu-project/idapython.git
synced 2025-01-01 04:31:56 +01:00
init.py: Replace non-printable characters in stdout/stderr going to the message window
This commit is contained in:
parent
9876c4ffa7
commit
9530fbacfa
@ -98,6 +98,8 @@ class MyStdOut:
|
|||||||
Dummy file-like class that receives stout and stderr
|
Dummy file-like class that receives stout and stderr
|
||||||
"""
|
"""
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
|
# Swap out the unprintable characters
|
||||||
|
text = text.decode('ascii', 'replace').encode('ascii', 'replace')
|
||||||
_idaapi.msg(text.replace("%", "%%"))
|
_idaapi.msg(text.replace("%", "%%"))
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user