[FFmpeg-cvslog] r22946 - trunk/libavutil/log.c

James Darnley james.darnley
Fri Apr 23 13:42:32 CEST 2010


On 23 April 2010 12:03, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, Apr 23, 2010 at 11:22:29AM +0200, James Darnley wrote:
>> I can get the original text colour and the original bg colour. ?But
>> then I wonder how many people change the colours of cmd.exe. ?They are
>> only persistent if you use a shortcut or explicitly set them when
>> running it. ?These functions don't seem to work with other terminals.
>> msys' rxvt, cygwin's mintty and even their default ones, sh run
>> through cmd, only respond to the ansi codes.
>
> do these terminals set the TERM environment variable?
> if so we could make a short list of the 5-10 terminals people
> use on windows that fully support ansi colors and that way autodetect
> them.
> A patch for that is welcome

Yes they do set TERM.  "xterm" "cygwin" and "msys" are the three
strings returned.  Unfortunately, if you run a native windows
executable in these terminals, isatty() will always return false.  I
should have said this before but when I was testing them, I forced
printing of the ansi codes.



More information about the ffmpeg-cvslog mailing list