C++ Different output to console

Hello, I am pretty new to c++ but I have had some previous programming experience. My question it how do you output like programs like testDisk do where the whole console can be rewritten but without just writing new lines. If anyone is confused by what I was asking just tell me, I am just having trouble because I don't know what to call this. I would prefer if someone could answer in reference to c++, or at least tell me what this is called.

Thank you for any help.
Thank you so much. I had been searching for days but got no where.
Topic archived. No new replies allowed.