fix: Handle NO_COLOR environment variable for disabling colored output

This commit is contained in:
Paul Gauthier 2025-03-06 12:14:11 -08:00 committed by Paul Gauthier (aider)
parent c79db2581b
commit 3da15bfd19

View file

@ -253,6 +253,7 @@ class InputOutput:
self.notifications_command = self.get_default_notification_command()
else:
self.notifications_command = notifications_command
no_color = os.environ.get("NO_COLOR")
if no_color is not None and no_color != "":
pretty = False