summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-06 06:41:56 +0300
committerSimon Glass <sjg@chromium.org>2020-07-25 04:25:15 +0300
commit3c541c08366533f1abbf7e36dd25033064d686c8 (patch)
tree40f27dc2025fdab1bc777e72daa6f445be0ba55e /tools
parent6bb74de7ed070a5ea44cc111939ed5bb07df5ef5 (diff)
downloadu-boot-3c541c08366533f1abbf7e36dd25033064d686c8.tar.xz
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/terminal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/terminal.py b/tools/patman/terminal.py
index c709438bdc..60dbce3ce1 100644
--- a/tools/patman/terminal.py
+++ b/tools/patman/terminal.py
@@ -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