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:
Jason2866
2025-06-23 15:30:08 +02:00
committed by Radim Karniš
parent c2f5d2164d
commit 5d5eafb703

View File

@@ -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: