From 4667091488da81807b39649fd55c5e45d0c99301 Mon Sep 17 00:00:00 2001 From: Valerie Date: Tue, 2 Jul 2024 09:42:57 -0400 Subject: [PATCH] color mode is now decided by whether or not COLORTERM var is set --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index b5e37b8..af442fa 100644 --- a/main.c +++ b/main.c @@ -51,8 +51,8 @@ int main(int argc, char **argv) { else { flag = ""; } int color_mode = 0; - char * term = getenv("TERM"); - if(strcmp(term, "linux")) + char * colorterm = getenv("COLORTERM"); + if(strcmp(colorterm, "")) color_mode = 1; // handle flags