diff options
| author | Georg Brandl <georg@python.org> | 2009-05-02 19:57:01 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-05-02 19:57:01 +0200 |
| commit | f8ffb8558d14457757e8b9ebd4264ebb58c12781 (patch) | |
| tree | 94b2caa914eb0a0eb3530c578bedc5dc74205ab8 | |
| parent | 9329d39edb0d6097aa8c0fd78f35b03bccede49b (diff) | |
| download | sphinx-f8ffb8558d14457757e8b9ebd4264ebb58c12781.tar.gz | |
Enable colors in the linux console.
| -rw-r--r-- | sphinx/util/console.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py index 083fc6f4..931f1ed0 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 |
