Python evaluation logs will be printed as info report. There will be one entry for python output (stdout, stderr) and one for error (if occured). There will be no need to look at the console.
There are small issues left, but this is the core is done.
Possible issues:
- should there be an option in text editor for catching python output?
- iowrapper can be moved to bpy_cap_utils.c
- iowrapper can be converted to use struct instead of globals
- python print is visible only in console as log bke.report only in level INFO (default is warning) blender --log-severity 2 --log "bke.report"
INFO (bke.report): /home/mat/CLionProjects/blender-copy/blender-src/source/blender/blenkernel/intern/report.c:136 BKE_report_format: ReportList(0x60b0002811f8):Info: Python output from "/Text": blah