NOW the console got in. Got that taken care of when, after hours of fruitless debugging of my NSPipe-related code, I realized that it was some third party code *cough*RMUDAnsiTextView*cough* that was the source of all the evils.
So, I took out RMUDAnsiTextView and its dependency AGRegex, wrote my own smaller and BETTER code to convert ANSI color coded strings into NSAttributedStrings, and it’s all set.