dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
723 stars 169 forks source link

Handling carriage return for programs that print updates in same place. #42

Open JamesG269 opened 5 years ago

JamesG269 commented 5 years ago

I have an app that runs FFMpeg to convert video/audio, FFMpeg prints status updates on top of themselves in cmd.exe (like "frame 9000" will be overwritten with "frame 9100" in the same place without a new line). When I send the output from the FFMpeg process to the consolecontrol it prints them after each other, so you get "frame 9000 frame 9100" etc. I tried scanning the output from FFMpeg for char(13) [carriage return] but it was not there, is there a way to accomplish the same output for this as a cmd.exe window?