summaryrefslogtreecommitdiff
path: root/sphinx/util/console.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-02 19:57:01 +0200
committerGeorg Brandl <georg@python.org>2009-05-02 19:57:01 +0200
commit7890fa17e0cad0b50d7478886b3947b74248cc18 (patch)
tree94b2caa914eb0a0eb3530c578bedc5dc74205ab8 /sphinx/util/console.py
parentba0039cc4d2b13e4a5514549375ccd240054ba45 (diff)
downloadsphinx-git-7890fa17e0cad0b50d7478886b3947b74248cc18.tar.gz
Enable colors in the linux console.
Diffstat (limited to 'sphinx/util/console.py')
-rw-r--r--sphinx/util/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py
index 083fc6f46..931f1ed04 100644
--- a/sphinx/util/console.py
+++ b/sphinx/util/console.py
@@ -41,7 +41,7 @@ def color_terminal():
if 'COLORTERM' in os.environ:
return True
term = os.environ.get('TERM', 'dumb').lower()
- if 'xterm' in term or 'color' in term:
+ if term in ('xterm', 'linux') or 'color' in term:
return True
return False