color mode is now decided by whether or not COLORTERM var is set
This commit is contained in:
parent
ec6b291135
commit
4667091488
1 changed files with 2 additions and 2 deletions
4
main.c
4
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
|
||||
|
|
Loading…
Reference in a new issue