Skip to content

Commit 5d5eafb

Browse files
Jason2866radimkarnis
authored andcommitted
fix(logger): Turn on smart features in more cases
Closes espressif#1096 use term_supports_color as decider
1 parent c2f5d21 commit 5d5eafb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esptool/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _set_smart_features(cls, override: bool | None = None):
115115

116116
# Determine if colors should be enabled
117117
cls.instance._smart_features = (
118-
is_tty and term_supports_color and not no_color
118+
is_tty or term_supports_color and not no_color
119119
)
120120
# Handle Windows specifically
121121
if sys.platform == "win32" and cls.instance._smart_features:

0 commit comments

Comments
 (0)