From 87f59804239489161d0a617bb94c21d96576a532 Mon Sep 17 00:00:00 2001 From: Cthulhux Date: Mon, 25 Mar 2024 01:24:12 +0100 Subject: [PATCH 1/2] Support NO_COLOR Just a small UX improvement for some people (that includes me). ref.: https://no-color.org --- buku | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buku b/buku index 7e263f9a..71f6f4d5 100755 --- a/buku +++ b/buku @@ -5850,6 +5850,10 @@ POSITIONAL ARGUMENTS: if args.colorstr is None and colorstr_env is not None: args.nc = True + # Handle NO_COLOR as well: + if os.environment.get('NO_COLOR') is not None: + args.nc = True + # Handle color output preference if args.nc: logging.basicConfig(format='[%(levelname)s] %(message)s') From d17990fb609778880ee31c3a4fbbfd9d511812cf Mon Sep 17 00:00:00 2001 From: Cthulhux Date: Mon, 25 Mar 2024 11:09:27 +0100 Subject: [PATCH 2/2] Update buku MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Welcome to “don’t write code when tired” --- buku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buku b/buku index 71f6f4d5..9d36b1bc 100755 --- a/buku +++ b/buku @@ -5851,7 +5851,7 @@ POSITIONAL ARGUMENTS: args.nc = True # Handle NO_COLOR as well: - if os.environment.get('NO_COLOR') is not None: + if os.environ.get('NO_COLOR') is not None: args.nc = True # Handle color output preference