Hi. Noob here just playing around with some things trying to learn. I was wondering if there is a way to print a stationary progress bar onto my console window. I tried ftell() and fseek() but that didn't work.
int i, t;
pos = 0;
pos = ftell(stdout);
/* record current position */
for (i = 2; i < 10; ++i)
pos[i] = ftell(stdout);
/* print progress bar */
for (i = 1, t = 10; t > 0; ++i, --t)
fseek(stdout, pos[i], SEEK_SET);
I'm trying to overwrite the dashes. [==========].
[T3256@GURY GibletSearch]$ ./temp