This commit is contained in:
Barış Metin
2005-06-24 07:14:35 +00:00
parent d8926e0751
commit 8fde4f9c5d
+2
View File
@@ -1,3 +1,4 @@
# Colors module provides some color codes for console output.
colors = {'black' : "\033[30m",
'red' : "\033[31m",
@@ -42,6 +43,7 @@ colors = {'black' : "\033[30m",
'default' : "\033[0m" }
def colorize(msg, color):
"""Colorize the given message for console output"""
if colors.has_key(color):
return colors[color] + msg + colors['default']
else: