diff options
Diffstat (limited to 'loading.h')
-rw-r--r-- | loading.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -5,6 +5,19 @@ * Loading display */ +void *rrf(void * arg) { + + sleep(RR); + printf("\n Never gonna give you up \n"); + printf(" Never gonna let you down \n"); + printf(" Never gonna run around and desert you. \n"); + printf("%s ", prompt); + fflush(stdout); + + return; + +} + void loading() { printf(" Loading... 3"); @@ -21,4 +34,9 @@ void loading() { printf("\r Loading... Done.\n\n"); + if (RR) { + pthread_t rrt; + pthread_create(&rrt, NULL, rrf, NULL); + } + }
\ No newline at end of file |