I've written a custom powershell host that provides a winforms-based interactive shell. The examples MSDN were excellent and I was able to get something working in a few hours.
All of the standard built-in commands like dir, etc work as expected. However, when I try to launch another console app,like the FTP client, that app starts sending output to stdout. I can see this by changing the application type in VS from windows to console. As soon as I launch FTP from my interactive shell, FTP starts talking to the console window.
Anyone tackled this before? In C++ I could just redirect stdin and stdout and be done with it, but I don't see a way to do this in c#. Help!
update
Okay, anything I run that is not a built-in command immediately starts interacting with the console window.