Skip to content

Instantly share code, notes, and snippets.

@troygnichols
Created July 29, 2014 00:33
Show Gist options
  • Save troygnichols/f5b0f680987fcce69f9e to your computer and use it in GitHub Desktop.
Save troygnichols/f5b0f680987fcce69f9e to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void clear();
int main (void) {
printf("GET READY! This program is gonna blow your mind...");
fflush(stdout);
usleep(1750000);
clear();
for (int i=1; i <= 5; i++) {
printf("\r");
printf("%d", i);
fflush(stdout);
usleep(500000);
}
clear();
printf("\rMIND...");
fflush(stdout);
usleep(1250000);
clear();
printf("\r ...BLOWN!");
fflush(stdout);
usleep(1250000);
clear();
printf("\rAM I RIGHT!?!?!?!");
fflush(stdout);
usleep(1250000);
clear();
exit(0);
}
void clear() {
printf("\r ");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment