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 = ""; }
|
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
|
||||||
|
|
Loading…
Reference in a new issue