commit | 4a65df27bf9e41d5cd92f9dcc5644c4fc6d1dc23 | [log] [tgz] |
---|---|---|
author | Rob Mohr <mohrr@google.com> | Wed Sep 27 22:10:45 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 27 22:10:45 2023 +0000 |
tree | 3794cd1acf81fc1dd81b58c8c05ad5407e8e0185 | |
parent | 3a9727a30897a60fafbf41266c7a4adac96eadb5 [diff] |
pw_cli: Narrow logic around colors We would always use colors if PW_USE_COLOR was set to a "true" value, or if it was not set, or if we're connected to a terminal. Change that logic to default to using colors if connected to a terminal, and overriding that default if PW_USE_COLOR is set. Change-Id: I057c76c1b0c72f96c5d0177bc84ffb45ea6d57ec Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/173232 Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Pigweed-Auto-Submit: Rob Mohr <mohrr@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/.