G
Guest
Hi
I am running a console program through my own VB front end. I am redirecting the StandardOut and StandardInput streams to and from textboxes so that the VB front end acts like a console. My problem is that the console program outputs a message, then a newline, then a prompt character (<message><newline>"> "), but I can only seem to read the StandardOut stream by line. So the prompt character is never shown, since the stream is only read to the newline. The prompt does not show up until another newline is added to the output stream. Is there any way to flush the output stream or not have it buffered by newline
The code I am working with is similar to this
<http://www.mvps.org/dotnet/dotnet/samples/miscsamples/downloads/RedirectConsole.zip
(if you run this, you will notice that you not receive the command prompt when you should - the same type of problem I am having
Thanks
Tim
I am running a console program through my own VB front end. I am redirecting the StandardOut and StandardInput streams to and from textboxes so that the VB front end acts like a console. My problem is that the console program outputs a message, then a newline, then a prompt character (<message><newline>"> "), but I can only seem to read the StandardOut stream by line. So the prompt character is never shown, since the stream is only read to the newline. The prompt does not show up until another newline is added to the output stream. Is there any way to flush the output stream or not have it buffered by newline
The code I am working with is similar to this
<http://www.mvps.org/dotnet/dotnet/samples/miscsamples/downloads/RedirectConsole.zip
(if you run this, you will notice that you not receive the command prompt when you should - the same type of problem I am having
Thanks
Tim