I have a program (no source) that I want to redirect the stdout and strerr off so I can parse the progress indicator and show a progress in the application that’s calling it.
The problem is this application has calles to Console.Clear(), SetWindowSize, Cursor.Top etc.
These seem to break redirection and crash the application. I’ve managed to get it to work by NOPing these calls in the il code, but this ofcourse is more of a hack than anything else.
I was wondering if there is a way for me to redirect the STDs without removing these calls.
Nope, you are stuck.
You can’t use any of those fancy features in a redirected port.