Skip to content

Commit

Permalink
Merged in rneu31/added-support-for-windows-color-output-u-14044189735…
Browse files Browse the repository at this point in the history
…91 (pull request #3)

Added support for Windows color output using colorama (if installed)
  • Loading branch information
rneu31 committed Jul 3, 2014
2 parents 4883e1e + 0058b4d commit 6fc7a1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sphinx/util/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def color_terminal():


def nocolor():
codes.clear()
# check if colorama is installed to support color on Windows
try:
import colorama
colorama.init()
except ImportError:
codes.clear()

def coloron():
codes.update(_orig_codes)
Expand Down

0 comments on commit 6fc7a1a

Please sign in to comment.