summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavid <[email protected]>2026-10-30 18:49:09 -0300
committerdavid <[email protected]>2026-10-30 18:49:09 -0300
commitbfb4b6513fac5ee67abd8f2859c53ac77c0a15ab (patch)
tree16476a6b803a53375d9a784dd7f2d2f4d58a1f54 /src
parenteffca97ac0ce9e93fe29e5c345bd544e87a2a606 (diff)
downloadmikusays-c-bfb4b6513fac5ee67abd8f2859c53ac77c0a15ab.tar.gz
mikusays-c-bfb4b6513fac5ee67abd8f2859c53ac77c0a15ab.zip
added teto
Diffstat (limited to 'src')
-rw-r--r--src/main.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 7e1c83d..aae7d29 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;