in reply to Tacking a function on to STDOUT?

Is there some reason not to use your own solution?
print filterText("Here's some text!");

A search and replace and you are away. Any other solution seems likely to be more complex. You could for instance redirect STDOUT to a file and fork a second process to filter then print data as it arrives in this file. Seems overly complex though.

tachyon