"Hush" output window

I am running some error-agnostic code in my plugin and I would like to “hush” the output window so that there is not that much spam. Specifically, I am parsing a series of type declarations with parse_decls_for_srclang with SRCLANG_C and since there is no easy way to put the types in proper order I just spam that function until I can’t parse anymore.

Unfortunately this causes quite the spam in the “Output” window and I was trying to see if I could hush the output temporarily. I have tried:

  • Replacing ida_kernwin.msg with a noop
  • Replacing the Output QAbstractScrollArea (I think this is it) QWidget paintEvent with a noop
  • Other various QWidget function replacements

I think the main problem is that I am doing this from Python and the kernel probably does not really care about those bindings. I was hoping I could get some advice on how to do this if it is possible. And also, semi-related are there any other resources on how to fiddle with IDA’s Qt widgets like in the Output window? I tried using inject_command.py as a reference but AFAICT the Output “output” window is some sort of custom QAbstractScrollArea.

Thanks.

I’d suggest to use parse_decls(), which is enough in your case.