提交 ef662912 编写于 作者: S Simon Glass

patman: Allow disabling 'bright' mode with Print output

At present all text is marked bright, which makes it stand out on the
terminal. Add a way to disable that, as is done with the Color class.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 57374b09
......@@ -122,7 +122,7 @@ def TrimAsciiLen(text, size):
return out
def Print(text='', newline=True, colour=None, limit_to_line=False):
def Print(text='', newline=True, colour=None, limit_to_line=False, bright=True):
"""Handle a line of output to the terminal.
In test mode this is recorded in a list. Otherwise it is output to the
......@@ -140,7 +140,7 @@ def Print(text='', newline=True, colour=None, limit_to_line=False):
else:
if colour:
col = Color()
text = col.Color(colour, text)
text = col.Color(colour, text, bright=bright)
if newline:
print(text)
last_print_len = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册