I want to make a progress bar for my terminal application that would work something like:
[XXXXXXX ]
which would give a visual indi
try using \r instead of \n when printing the new "version".
\r
\n
for(int i=0;i<=100;++i) printf("\r[%3d%%]",i); printf("\n");