I want to make printf to overwrite previously writen characters in the screen (stdout), like we see in many consele programs, I want to make an animated "Calculating......", or "Progress...."
The Idea is:
//Calculating.............. -> When there are 10 dots, then I erase all dots and start writing dot after dot again till it gets to 10.
Or that thing "Calculating \ | / -- \ | / --
How do I do that?