From 2136f3a3cd71e583602a0f8998f58dac96af8a74 Mon Sep 17 00:00:00 2001 From: David Logie Date: Thu, 7 Dec 2023 09:28:29 +0000 Subject: [PATCH] Bring back NO_COLOR support. Fixes #5028. --- beets/ui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index ef96c9c38..a98e8ee43 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -591,7 +591,7 @@ def colorize(color_name, text): """Colorize text if colored output is enabled. (Like _colorize but conditional.) """ - if config["ui"]["color"]: + if config["ui"]["color"] and "NO_COLOR" not in os.environ: global COLORS if not COLORS: # Read all color configurations and set global variable COLORS.