You can print \rto delete the prompt: it will return the cursor to the beginning of the current line. You can then print your output, followed by some spaces, to remove all remaining input characters, a new line, and retype the prompt.
ANSI , , , , , , ASCII. 242 , , .
: , ANSI . -, , " ". , Windows -XP/ANSI post XP, .