Changing colored output to use Linux standard colors

This way, the output of packstack which running via Robot Framework
will appear well instead of something like "[ [92mDONE[0m ]".

Change-Id: I9aa39f56d83550ffd142c98be945364f0090e720
This commit is contained in:
Rami Vaknin
2013-06-11 15:28:16 +03:00
parent c4630a2714
commit c51cd47855

View File

@@ -3,8 +3,8 @@
STR_MASK = '*' * 8
COLORS = {'nocolor': "\033[0m", 'red': "\033[0;31m",
'green': "\033[92m", 'blue': "\033[94m",
'yellow': "\033[93m"}
'green': "\033[32m", 'blue': "\033[34m",
'yellow': "\033[33m"}
def color_text(text, color):