#include #include #include int main(){ char *sequence = "|/-\\|/-\\"; char spot = 0; while(1){ usleep(20000); printf("\b%c", sequence[spot]); fflush(0); spot++; if(spot > strlen(sequence)){ spot = 0; printf("\b* \\"); fflush(0); } } return 0; }