]> git.ipfire.org Git - thirdparty/u-boot.git/commit
u_boot_pylib: Improve ANSI-colour output with backgrounds
authorSimon Glass <sjg@chromium.org>
Tue, 29 Apr 2025 13:22:02 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:41 +0000 (10:07 +0100)
commitf74c6f9a81de1c0c04c578b0e6e2d8b1303d6d43
tree3962895945b30825b19d419dfc6c03500222af71
parentb697480f19cf690a51bfb3c788aa381de43eac79
u_boot_pylib: Improve ANSI-colour output with backgrounds

The current implementation does not handle background colours very well:

- It outputs an incorrect code in some cases, leading to wrong colours
- Some functions lack a control for the background

Tidy this up so that background colours can be used in more places.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/u_boot_pylib/terminal.py