[FFmpeg-devel] [PATCH] add colours to warnings and errors
Thu Apr 22 12:41:40 CEST 2010
Sebastian Vater <cdgs.basty at googlemail.com> writes:
> Hey to all!
> Vladimir Pantelic a ?crit :
>> David Conrad wrote:
>>> What about AV_LOG_FATAL?
>>>> while RED and YELLOW might look good on a dark background (yes I know,
>>>> if I don't run my term in green on black I'm a useless n00b anyway)
>>>> yellow might not come out well for "black on white" setups ...
>>> The current code adds a black background.
>>> As long as we're bikeshedding, I want it not to change the
>>> background, the entire line be in bold, and only the "[%s @ %p]" be
>>> colorized if present.
>> blink, slow or rapid? :)
> My idea:
> AV_LOG_FATAL: red blinking
> AV_LOG_ERROR: red
> AV_LOG_WARN: yellow
> Regarding changing the background, we yesterday discussed in
> #ffmpeg-devel that it's maybe the best idea to implement some high
> contrast algorithm.
It's not generally possible to query the background colour.
> Another option would be one being able to set color with configure...
> Sth. like that?
> ../configure --warn-fg-color=2 --warn-bg-color=3 --err-fg-color=4
> --err-bg-color=5 --fatal-fg-color=6 --fatal-bg-color=7
No, NO, *NO*!!!
mans at mansr.com
More information about the ffmpeg-devel