]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/log_colorizer.py: add LogColorizerProxyProgressHandler
authorChris Laplante <chris.laplante@agilent.com>
Tue, 28 Jul 2020 01:35:55 +0000 (21:35 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jul 2020 09:12:28 +0000 (10:12 +0100)
commit312fb3c86a3d84e60867b132666c01859f73ceb2
tree678300f4eabb4e0d111d4bb3469f53f61e76ab90
parentaeb48eb989a42846fbaed6b7f3a5a3d951d11e23
lib/oe/log_colorizer.py: add LogColorizerProxyProgressHandler

This progress handler intercepts log output, stripping any ANSII color
escape codes. Then the stripped output is fed to the underlying progress
handler which will render the progress bar as usual.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/log_colorizer.py [new file with mode: 0644]