wrote:
> I am writing a simple hardware test program in C that would run from
> Windows command line.
>
> Inside one of the loops, I have this code fragment that would display
> the Iteration count.
>
> {
> ...
> system("cls");
> printf("\nIteration:%d", i);
> ...
> }
>
> Since I have to clear the screen everytime I update the Iteration
> count, there is lot of "FLICKERING".
>
> Is there a better way to update the Iteration count without having to
> clear the screen?
>
> Regards,
> Karthigan.
>
try something like... should help in reducing the flickering...
{
....
printf("%08d\b\b\b\b\b\b\b\b",i);
fflush(stdout);
.....
}