[entropy.output] add getcolor()

This commit is contained in:
Fabio Erculiani
2010-04-29 16:49:32 +02:00
parent 9980f7c437
commit 5fef396321
+6
View File
@@ -224,6 +224,12 @@ def nocolor():
global havecolor
havecolor=0
def getcolor():
"""
Return color status
"""
return havecolor
nc = os.getenv("ETP_NO_COLOR")
if nc:
nocolor()