[FFmpeg-devel] [PATCH] add colours to warnings and errors
Howard Chu
hyc
Thu Apr 22 01:23:52 CEST 2010
Michael Niedermayer wrote:
> 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 HAVE_ISATTY
> if (isatty(fd))
> fprintf( fd, "\033[...
> #endif
> }
>
> also windows/dos in the distant past supported ansi color codes, did MS
> drop support for that?
ANSI codes are not supported by default, the system has to be configured to
load the ANSI.SYS driver for them to work.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
More information about the ffmpeg-devel
mailing list