mirror of
https://github.com/espressif/esptool.git
synced 2025-10-14 19:28:40 +08:00
fix(logger): Turn on smart features in more cases
Closes https://github.com/espressif/esptool/pull/1096/ use term_supports_color as decider
This commit is contained in:
@@ -115,7 +115,7 @@ class EsptoolLogger(TemplateLogger):
|
||||
|
||||
# Determine if colors should be enabled
|
||||
cls.instance._smart_features = (
|
||||
is_tty and term_supports_color and not no_color
|
||||
is_tty or term_supports_color and not no_color
|
||||
)
|
||||
# Handle Windows specifically
|
||||
if sys.platform == "win32" and cls.instance._smart_features:
|
||||
|
Reference in New Issue
Block a user