Skip to content

Instantly share code, notes, and snippets.

@nakajima
Created December 5, 2008 05:03
Show Gist options
  • Save nakajima/32246 to your computer and use it in GitHub Desktop.
Save nakajima/32246 to your computer and use it in GitHub Desktop.
gcc -o fucker fucker.c && ./fucker
#include <stdio.h>
#define SPACER " "
#define MAX_COLOR 5
int main() {
int x;
int i = 1;
while(i) {
printf("\e[37m"); // white
printf("\e[3%dm", i); // dynamic color
printf("\e[7m"); // Invert foreground/background
printf("fu"); // Start printing word
for (x = 2; x < i; x++) {
printf("u");
}
printf("ck\e[0m");
if (i == MAX_COLOR) {
i = 0;
}
printf(SPACER);
i++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment