Is there a cross platform way of doing console method redirects? What I mean is, if I have an library that I'm using that does console writes they will fail within a graphical application. How can I redirect StdOut to, oh say a memo, control on my form?

I've done a bit of googling, but no avail . I know how to do this in Windows and Delphi, but the solution I use isn't even close to cross platform then.