Hi, The Linux console supports the coloured status display of Sphinx, but Sphinx doesn't enable it. The silly little patch attached fixes this.
I realise it is possible to set COLORTERM to anything to get coloured output, but it doesn't appear to be set by default on any of the distros I have access to. It is, I believe, worth noting that ncurses supplies a linux-m terminfo entry for monochrome consoles so the change shouldn't affect anybody who has mono misfortune ;) Thanks, James
diff --git a/sphinx/util/console.py b/sphinx/util/console.py
index 083fc6f..931f1ed 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
pgp88cVtOfGpb.pgp
Description: PGP signature
