[FFmpeg-cvslog] r22946 - trunk/libavutil/log.c
Michael Niedermayer
michaelni
Thu Apr 22 23:16:13 CEST 2010
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?
>
> On windows ANSI codes work only if the ansi.sys driver is loaded. I
> don't know if that can be detected. I also don't know about other
> systems.
on dos there was the mem command that listed things (like ps)
it should list ansi.sys too
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- 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/20100422/50b7f514/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list