J
Jacob Kjaergaard
Hi!
Im looking for a (relatively) easy way to print at the same spot on the
terminal. Like i.e wget does when showing the progressbar and the
percentage of the download.
if been looking in the source code to wget, but it seems very
comprehensive.
printf normally "scrolls" this is what I want to control.
i've tried manipulating the stdout stream with lseek() and fseek() to
rewind, but this doesn't seem to work. the fileposition ftell() returns -1
anyone, any ideas?
/Jacob
Im looking for a (relatively) easy way to print at the same spot on the
terminal. Like i.e wget does when showing the progressbar and the
percentage of the download.
if been looking in the source code to wget, but it seems very
comprehensive.
printf normally "scrolls" this is what I want to control.
i've tried manipulating the stdout stream with lseek() and fseek() to
rewind, but this doesn't seem to work. the fileposition ftell() returns -1
anyone, any ideas?
/Jacob