I have seen programs where they print something to the console, but each new line overwrites the previous one. The most common application of this is to see something like a percentage that increases to 100, but each new increment overwrites the previous one, instead of being displayed separately. By default, if you call printf it will advance the cursor to the next space. Is there a way to keep it in place and overwrite text that has already been printed?
I hope my question make sense - it's kind of hard to describe in words what I am talking about.
I hope my question make sense - it's kind of hard to describe in words what I am talking about.