fixed trans flag colors and added rudimentary color mode check
This commit is contained in:
parent
efbb098ed9
commit
9a1473a455
3 changed files with 5 additions and 2 deletions
4
full.c
4
full.c
|
@ -75,9 +75,9 @@ void pansexual_256() {
|
|||
void transgender_256() {
|
||||
printf(
|
||||
COLOR(45) STRIPE
|
||||
COLOR(117) STRIPE
|
||||
COLOR(213) STRIPE
|
||||
COLOR(255) STRIPE
|
||||
COLOR(117) STRIPE
|
||||
COLOR(213) STRIPE
|
||||
COLOR(45) STRIPE
|
||||
);
|
||||
}
|
||||
|
|
3
main.c
3
main.c
|
@ -50,6 +50,9 @@ int main(int argc, char **argv) {
|
|||
else { flag = RAINBOW; }
|
||||
|
||||
int color_mode = 0;
|
||||
char * term = getenv("TERM");
|
||||
if(strcmp(term, "linux"))
|
||||
color_mode = 1;
|
||||
|
||||
// handle flags
|
||||
if(strcmp(flag, "--version") == 0) {
|
||||
|
|
BIN
pride-c
Executable file
BIN
pride-c
Executable file
Binary file not shown.
Loading…
Reference in a new issue