Изменение функции ожидания
This commit is contained in:
parent
f0b7a6d61f
commit
af01e28798
@ -5,6 +5,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "c_cross_pack/libs/threads.h"
|
#include "c_cross_pack/libs/threads.h"
|
||||||
|
#include "c_cross_pack/libs/time.h"
|
||||||
|
|
||||||
#define CL_RED "\033[1;31m"
|
#define CL_RED "\033[1;31m"
|
||||||
#define CL_YELLOW "\033[1;33m"
|
#define CL_YELLOW "\033[1;33m"
|
||||||
@ -68,7 +69,7 @@ void* loadAnim() {
|
|||||||
for (size_t i = 0; i < sizeof(anim)/sizeof(anim[0]); i++) {
|
for (size_t i = 0; i < sizeof(anim)/sizeof(anim[0]); i++) {
|
||||||
printf("\r[%s%c%s] %s", CL_YELLOW, anim[i], CL_NORMAL, comment);
|
printf("\r[%s%c%s] %s", CL_YELLOW, anim[i], CL_NORMAL, comment);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
usleep(100 * 1000); // 100 ms
|
wait(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user