diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -548,7 +548,10 @@ static int parse_gradient(const char *specification, rgbcolor *start, rgbcolor * int main(int argc, char **argv){ long style = -1; //-1 means random - int index, result = 0, list_requested = 0, color_debug = 0, no_color = 0; + int index, result = 0, list_requested = 0, color_debug = 0; + #ifdef _WIN32 + int no_color = 0; + #endif int has_text = 0, options_ended = 0, ansi_enabled = 0; const char *value, *color_text = NULL, *gradient_text = NULL; ColorParseError color_error; @@ -587,10 +590,14 @@ int main(int argc, char **argv){ list_requested = LIST_MIKU; } else if(strcmp(argument, "-lt") == 0 || strcmp(argument, "--listteto") == 0){ list_requested = LIST_TETO; - } else if(strcmp(argument, "--no-color") == 0){ - no_color = 1; - colors.mode = MODE_NONE; - }else if(strcmp(argument, "--rainbow") == 0){ + } + #ifdef _WIN32 + else if(strcmp(argument, "--no-color") == 0){ + no_color = 1; + colors.mode = MODE_NONE; + } + #endif + else if(strcmp(argument, "--rainbow") == 0){ colors.rainbow_enabled = true; } else if(strcmp(argument, "--color-debug") == 0){ color_debug = 1; |
