Here's what I want to do:

I want to open a console window with the push of a button and then capture the window output into my gui. This console window will be closed on user termination so I need the output capture to continuously work until program termination. I have tried the redirect standard output methods but it waits until the program exits and then shows the output.

If anyone could help me, that would be great.