[FFmpeg-devel] [PATCH] add colours to warnings and errors

Michael Niedermayer michaelni
Thu Apr 22 01:12:32 CEST 2010

On Thu, Apr 22, 2010 at 12:59:15AM +0200, James Darnley wrote:
> Here is a patch which tries to prevent some pebkac issues.  It prints
> AV_LOG_ERROR in red and AV_LOG_WARNING in yellow.

the idea is good, your implementation is not

it should be looking something like

ff_set_console_color(int fd, int color){
    if (isatty(fd))
        fprintf( fd, "\033[...

also windows/dos in the distant past supported ansi color codes, did MS
drop support for that?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100422/5ca88009/attachment.pgp>

More information about the ffmpeg-devel mailing list