commit | 5b46ebf912a0ebf379273012a12fa24815f14534 | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Tue May 20 15:35:35 2025 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 20 15:35:35 2025 -0700 |
tree | df20a5566b97a3551c16c78d0eacf14631f09891 | |
parent | b9eb3563fafbc1093a2bcecf24cf6bfbaee9bbcf [diff] |
pw_build: Fix log line reset color check ANSI colors can be reset with either \x1b[0m or \x1b[m. The check_ansi_codes function was only looking for the first. One app ended every single output line with \x1b[m which caused previous_colors to accumulate repeated \x1b[m until the UI slowed to a crawl. This fix checks for either code now as the reset sequence. Change-Id: I7e9b26ce361eb54212226975777c811dfddccf26 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/291812 Docs-Not-Needed: Anthony DiGirolamo <tonymd@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Rosenthal <alanrosenthal@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.