Tuesday 15 June 2010

ffmpeg - Delphi: how to capture COLORED output of the CONSOLE application? -


I have seen many ways to capture the output of the initialized console application. But they were all "monochrome" solutions, for example FFMPEG could produce color. How to catch color?

You must hook all the console output functions (say, writeConsoleOutput process to reach the screen buffer See MSDN Library), then pass the intercept output in your application via shared memory or pipe. There is no other way to handle the console output of APIs, other applications.

No comments:

Post a Comment