提交 74e55c69 编写于 作者: L Lukáš Doktor

avocado.core.output: Add GREY color

This patch adds COLOR_DARKGREY resp. GREY color. These are going to be
used in debug version of multiplexer plugin. Without different
colors the output is unreadable.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 0d391121
......@@ -112,6 +112,7 @@ class TermSupport(object):
COLOR_GREEN = '\033[92m'
COLOR_YELLOW = '\033[93m'
COLOR_RED = '\033[91m'
COLOR_DARKGREY = '\033[90m'
CONTROL_END = '\033[0m'
......@@ -138,6 +139,7 @@ class TermSupport(object):
self.WARN = self.COLOR_YELLOW
self.PARTIAL = self.COLOR_YELLOW
self.ENDC = self.CONTROL_END
self.LOWLIGHT = self.COLOR_DARKGREY
term = os.environ.get("TERM")
if (not os.isatty(1)) or (term not in self.allowed_terms):
self.disable()
......@@ -155,6 +157,7 @@ class TermSupport(object):
self.WARN = ''
self.PARTIAL = ''
self.ENDC = ''
self.LOWLIGHT = ''
def header_str(self, msg):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册