Skip to content

Instantly share code, notes, and snippets.

@w4kfu
Last active September 18, 2020 07:14
Show Gist options
  • Save w4kfu/1c1c636b568143469a615f156ac44cce to your computer and use it in GitHub Desktop.
Save w4kfu/1c1c636b568143469a615f156ac44cce to your computer and use it in GitHub Desktop.
Clear IDA output window
def is_ida69():
major, minor = map(int, idaapi.get_kernel_version().split("."))
return (major == 6 and minor >= 9)
def clear_output_window():
# IDA 6.9 drop PySide in favor of PyQt5
if is_ida69():
from PyQt5 import QtGui, QtCore, QtWidgets
form = idaapi.find_tform("Output window")
w = idaapi.PluginForm.FormToPyQtWidget(form)
w.setFocus()
else:
from PySide import QtGui, QtCore
form = idaapi.find_tform("Output window")
w = idaapi.PluginForm.FormToPySideWidget(form)
w.setFocus()
idaapi.process_ui_action("msglist:Clear")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment