Enable colors in the linux console.

This commit is contained in:
Georg Brandl 2009-05-02 19:57:01 +02:00
parent ba0039cc4d
commit 7890fa17e0

View File

@ -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