#include #include #include int main(){ char place = 0; char* spinning_thing = "|/-\\|/-\\"; while(1){ printf("%c\b", spinning_thing[place]); fflush(stdout); place++; if(place == 8) place = 0; usleep(100000); } return 0; }