Mail Archives: djgpp/1997/06/14/00:52:04
You wrote djgpp mailing list regarding a problem with a "spinning cursor"
problem.
A mistakes you had was "For" instead of "for" which probably was the main
problem you where having. I also increased the nubmer of times it would
display because at 100 I didn't notice much at all.
Here's the code revised which should work under djgpp (I tried it under
gcc 2.7.2.1 under Linux).
Timothy Robb
#include <stdio.h>
void main(void)
{
int c;
for(c=0; c<10000; c++)
{
printf("\\\b");
printf("|\b");
printf("/\b");
printf("-\b");
}
}
- Raw text -