[issue4102] sphinx: ansi color even on dumb terminal

View: New views
3 Messages — Rating Filter:   Alert me  

[issue4102] sphinx: ansi color even on dumb terminal

by Weeble-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


New submission from Mikhail Gusarov <dottedmag@...>:

Debian bug #501629 (http://bugs.debian.org/cgi-bin/bugreport.cgi?
bug=501629).

Both sphinx-build and sphinx-quicksetup attempt (and fail) to use ansi
color sequences, even when TERM=dumb (for example, when run from an
emacs shell buffer, or m-x compile.  This produces garbage, like this:

^[[01mSphinx v0.4.2, building linkcheck^[[39;49;00m

While it does look like I can add -N in the generated Makefile, and
thus this is only a wishlist item since I have a workaround - it
really shouldn't generate color unless it has *some* indication that
it might work - even mooching off of $LSCOLORS would be better than
doing it blindly, though it should be enough to look at a TERM or
TERMCAP property - or perhaps indirectly via curses.has_colors() which
does appear to be able to tell "xterm" from "dumb" successfully.

----------
messages: 74644
nosy: dottedmag
severity: normal
status: open
title: sphinx: ansi color even on dumb terminal

_______________________________________
Python tracker <report@...>
<http://bugs.python.org/issue4102>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com


[issue4102] sphinx: ansi color even on dumb terminal

by Weeble-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Changes by Benjamin Peterson <musiccomposition@...>:


----------
assignee:  -> georg.brandl
nosy: +georg.brandl

_______________________________________
Python tracker <report@...>
<http://bugs.python.org/issue4102>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com


[issue4102] sphinx: ansi color even on dumb terminal

by Weeble-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Georg Brandl <georg@...> added the comment:

Should be fixed in r66933.

----------
resolution:  -> fixed
status: open -> closed

_______________________________________
Python tracker <report@...>
<http://bugs.python.org/issue4102>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

LightInTheBox - Buy quality products at wholesale price!