Compare commits

..

No commits in common. "efbb098ed962e149078bd0083b2be2eb73dfad9a" and "da8e51f6616be3215a82276f9d2540e8620b3959" have entirely different histories.

6 changed files with 2 additions and 44 deletions

View file

@ -1,14 +1,5 @@
# Pride! for the tty
A utility to display pride flags in 8- or 256- color terminals.
This is a C version of my [pride](https://git.vwolfe.io/valerie/pride) utility,
focused on compatibility.
## Goals
- Compatible: Runs, compiles, and correctly displays on almost anything.
- Low-dependency: Only uses the standard library.
- Small: Low compiled binary size.
A C utility to display flags in 256-color terminals.

10
basic.c
View file

@ -31,16 +31,6 @@ void bisexual_8() {
);
}
void gay_8() {
printf(
CYAN STRIPE
L_CYAN STRIPE
WHITE STRIPE
L_BLUE STRIPE
BLUE STRIPE
);
}
void lesbian_8() {
printf(
RED STRIPE

View file

@ -22,7 +22,6 @@
void rainbow_8();
void aroace_8();
void bisexual_8();
void gay_8();
void lesbian_8();
void nonbinary_8();
void pansexual_8();

12
full.c
View file

@ -33,18 +33,6 @@ void bisexual_256() {
);
}
void gay_256() {
printf(
COLOR(29) STRIPE
COLOR(49) STRIPE
COLOR(123) STRIPE
COLOR(255) STRIPE
COLOR(75) STRIPE
COLOR(63) STRIPE
COLOR(56) STRIPE
);
}
void lesbian_256() {
printf(
COLOR(202) STRIPE

1
full.h
View file

@ -5,7 +5,6 @@
void rainbow_256();
void aroace_256();
void bisexual_256();
void gay_256();
void lesbian_256();
void nonbinary_256();
void pansexual_256();

11
main.c
View file

@ -13,7 +13,6 @@
#define RAINBOW "rainbow"
#define AROACE "aroace"
#define BISEXUAL "bisexual"
#define GAY "gay"
#define LESBIAN "lesbian"
#define NONBINARY "nonbinary"
#define PANSEXUAL "pansexual"
@ -34,7 +33,6 @@ void help() {
"flag names:\n"
INDENT AROACE "\n"
INDENT BISEXUAL "\n"
INDENT GAY "\n"
INDENT LESBIAN "\n"
INDENT NONBINARY "\n"
INDENT PANSEXUAL "\n"
@ -76,18 +74,11 @@ int main(int argc, char **argv) {
else if(strcmp(flag, BISEXUAL) == 0) { // - BISEXUAL -
if(color_mode)
bisexual_256();
aroace_256();
else
bisexual_8();
}
else if(strcmp(flag, GAY) == 0) { // - GAY -
if(color_mode)
gay_256();
else
gay_8();
}
else if(strcmp(flag, LESBIAN) == 0) { // - LESBIAN -
if(color_mode)
lesbian_256();