color mode is now decided by whether or not COLORTERM var is set

This commit is contained in:
Valerie Wolfe 2024-07-02 09:42:57 -04:00
parent ec6b291135
commit 4667091488

4
main.c
View file

@ -51,8 +51,8 @@ int main(int argc, char **argv) {
else { flag = ""; } else { flag = ""; }
int color_mode = 0; int color_mode = 0;
char * term = getenv("TERM"); char * colorterm = getenv("COLORTERM");
if(strcmp(term, "linux")) if(strcmp(colorterm, ""))
color_mode = 1; color_mode = 1;
// handle flags // handle flags