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

Michael Niedermayer michaelni
Fri Apr 23 00:32:55 CEST 2010


On Thu, Apr 22, 2010 at 10:29:17PM +0100, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> 
> > On Thu, Apr 22, 2010 at 10:01:22PM +0100, M?ns Rullg?rd wrote:
> >> Michael Niedermayer <michaelni at gmx.at> writes:
> >> 
> >> > On Thu, Apr 22, 2010 at 09:32:24PM +0100, M?ns Rullg?rd wrote:
> >> >> Please revert or disable this code while you figure out something that
> >> >> works.
> >> >
> >> > ok
> >> > does anyone know how we can cleanly detect if the used terminal supports
> >> > ANSI codes?
> >> 
> >> That's what termcap/terminfo is for.  This means either using ncurses
> >> or doing a lot of dirty work ourselves, neither of which is very
> >> thrilling.
> >
> > :/
> >
> > what about getenv("TERM") and an array of terms that support ANSI?
> 
> That's the wrong solution.  Using curses would also make it work on
> non-ANSI terminals with colour information in terminfo.  Let's see how
> hard it is to do this with curses before embarking on further hack
> trails.

ok, ill leave this to whoever knows this stuff, that is unless noone
does and someoe points me to a readable manual about this stuff

i had falsely assumed that ANSI was by now old and widespread enough so
that terminals would either support it or at least ignore the esc codes

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- 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-cvslog/attachments/20100423/0a9baf36/attachment.pgp>



More information about the ffmpeg-cvslog mailing list