fixed trans flag colors and added rudimentary color mode check

This commit is contained in:
Valerie Wolfe 2024-03-23 00:23:42 -04:00
parent efbb098ed9
commit 9a1473a455
3 changed files with 5 additions and 2 deletions

4
full.c
View file

@ -75,9 +75,9 @@ void pansexual_256() {
void transgender_256() { void transgender_256() {
printf( printf(
COLOR(45) STRIPE COLOR(45) STRIPE
COLOR(117) STRIPE COLOR(213) STRIPE
COLOR(255) STRIPE COLOR(255) STRIPE
COLOR(117) STRIPE COLOR(213) STRIPE
COLOR(45) STRIPE COLOR(45) STRIPE
); );
} }

3
main.c
View file

@ -50,6 +50,9 @@ int main(int argc, char **argv) {
else { flag = RAINBOW; } else { flag = RAINBOW; }
int color_mode = 0; int color_mode = 0;
char * term = getenv("TERM");
if(strcmp(term, "linux"))
color_mode = 1;
// handle flags // handle flags
if(strcmp(flag, "--version") == 0) { if(strcmp(flag, "--version") == 0) {

BIN
pride-c Executable file

Binary file not shown.