]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: Allow disabling 'bright' mode with Print output
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2020 03:41:56 +0000 (21:41 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Jul 2020 01:25:15 +0000 (19:25 -0600)
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>
tools/patman/terminal.py

index c709438bdc4f737b8509e6e69f6565381785994e..60dbce3ce1ffd7da78a4141220b4ce47defd4078 100644 (file)
@@ -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