aboutsummaryrefslogtreecommitdiff
path: root/loading.h
diff options
context:
space:
mode:
Diffstat (limited to 'loading.h')
-rw-r--r--loading.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/loading.h b/loading.h
index 6aa43de..a9d7701 100644
--- a/loading.h
+++ b/loading.h
@@ -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