blob: 29662d826bc6edfd16d2e7153f0c804efb87f4e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/**
* Localchat
* Ben Burwell
*
* Loading display
*/
void *rrf(void * arg) {
// wait predetermined interval
sleep(RR);
// print lyrics
printf("\n Never gonna give you up \n");
printf(" Never gonna let you down \n");
printf(" Never gonna run around and desert you. \n");
// display prompt
printf("%s ", prompt);
fflush(stdout);
return;
}
void loading() {
printf(" Loading... 3");
fflush(stdout);
sleep(1);
printf("\r Loading... 2");
fflush(stdout);
sleep(1);
printf("\r Loading... 1");
fflush(stdout);
sleep(1);
printf("\r Loading... Done.\n\n");
if (RR) {
pthread_t rrt;
pthread_create(&rrt, NULL, rrf, NULL);
}
}
|