mirror of
https://github.com/idapython/src
synced 2026-06-08 14:47:00 +00:00
init.py: Replace non-printable characters in stdout/stderr going to the message window
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user