Bug#573304: vlc(1) produces --help with ECMA-48 (ANSI) escapes, even if TERM=dumb

Ivan Shmakov oneingray at gmail.com
Mon Jul 8 04:31:31 UTC 2013


>>>>> Rémi Denis-Courmont <remi at remlab.net> writes:

[…]

 > VLC checks whether the standard output is a terminal.  I find it
 > pretty damn idiotic for emacs to emulate a terminal but, not quite.

	… Could you please then point me to, say, a Braille terminal
	with support for colors?

 > It might as well use a pipe or a local socket pair then.

	Terminals have to do more with job control and basic (kernel’s)
	line editing functions, rather than ECMA-48 (AKA “ANSI”)
	processing or, say, pseudographics support.  (Be sure to check
	the POSIX definition of the terminal device interface [1].)

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html

 > Unless someone can point to a simple function in libc to check
 > whether ANSI color or ANSI control codes are supported, I am not
 > going to fix this upstream.  I cannot find any standard and simple
 > way to hit termcap or terminfo for that purpose.

	Frankly, I don’t want to insist on this bug being fixed.

	However, I believe it should be left open (even if wontfix), at
	least so that the workaround below remains visible to the users.

 > Note that you can turn off colors with:

 > # vlc -H --nocolor or # vlc -H| cat

	TIA.

-- 
FSF associate member #7257



More information about the pkg-multimedia-maintainers mailing list