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 = ""; }
int color_mode = 0;
char * term = getenv("TERM");
if(strcmp(term, "linux"))
char * colorterm = getenv("COLORTERM");
if(strcmp(colorterm, ""))
color_mode = 1;
// handle flags