Update documentation and sphinx-build -N option behavior for windows color console support. closes #1291.

This commit is contained in:
Takayuki Shimizukawa 2014-07-05 01:39:13 +09:00
parent 6ab7a2cbec
commit c8e0a8759d
5 changed files with 4 additions and 5 deletions

View File

@ -39,7 +39,7 @@ New features
submodule documentation. Thanks to Wes Turner and Luc Saffre.
* #1434: Provide non-minified JS files for jquery.js and underscore.js to
clarify the source of the minified files.
* PR#252: Windows color console support. Thanks to meu31.
* PR#252, #1291: Windows color console support. Thanks to meu31.
Bugs fixed
----------

View File

@ -154,8 +154,7 @@ The :program:`sphinx-build` script has several options:
.. option:: -N
Do not emit colored output. (On Windows, colored output is disabled in any
case.)
Do not emit colored output.
.. option:: -v

View File

@ -82,7 +82,6 @@ Standard options
def main(argv):
if not color_terminal():
# Windows' poor cmd box doesn't understand ANSI sequences
nocolor()
# parse options

View File

@ -138,7 +138,6 @@ class BuildDoc(Command):
def run(self):
if not color_terminal():
# Windows' poor cmd box doesn't understand ANSI sequences
nocolor()
if not self.verbose:
status_stream = StringIO()

View File

@ -64,6 +64,8 @@ def color_terminal():
def nocolor():
if sys.platform == 'win32' and colorama is not None:
colorama.deinit()
codes.clear()
def coloron():