mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable colors in the linux console.
This commit is contained in:
parent
ba0039cc4d
commit
7890fa17e0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user