mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-28 18:51:53 +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
|
||||
"""
|
||||
def write(self, text):
|
||||
# Swap out the unprintable characters
|
||||
text = text.decode('ascii', 'replace').encode('ascii', 'replace')
|
||||
_idaapi.msg(text.replace("%", "%%"))
|
||||
|
||||
def flush(self):
|
||||
|
Loading…
Reference in New Issue
Block a user