From d97c7f27b62f2743c094cf3cfd7f9bd53a58965d Mon Sep 17 00:00:00 2001 From: Valerie Date: Sat, 23 Mar 2024 12:20:38 -0400 Subject: [PATCH] minor syntax fixes --- main.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/main.c b/main.c index 41bd050..e2bf055 100644 --- a/main.c +++ b/main.c @@ -49,7 +49,7 @@ void help() { } void stripe(const unsigned short int color) { - printf(ANSI "%dum" STRIPE, color); + printf(ANSI "%dm" STRIPE, color); } int main(int argc, char **argv) { @@ -94,18 +94,18 @@ int main(int argc, char **argv) { break; case 'p': // - PANSEXUAL - - draw(MAGENTA); - draw(L_YELLOW); - draw(CYAN); + stripe(MAGENTA); + stripe(L_YELLOW); + stripe(CYAN); break; case 'r': // - RAINBOW - - draw(RED); - draw(L_RED); - draw(L_YELLOW); - draw(GREEN); - draw(BLUE); - draw(MAGENTA); + stripe(RED); + stripe(L_RED); + stripe(L_YELLOW); + stripe(GREEN); + stripe(BLUE); + stripe(MAGENTA); break; case 't': // - TRANSGENDER - @@ -117,7 +117,8 @@ int main(int argc, char **argv) { break; default: - printf("pride-c: no flag '%c' found", sym + printf("pride-c: no flag '%c' found", sym); + break; } printf(RESET);