you can add ESC[K (clear to end of line) to ESC[A (up one line), and print your new line text
an example using Python:
import random, time
for _ in range(100):
print('\x1b[A\x1b[Kthis will print each line cleanly: %d' %(random.randint(0, 100000)))
time.sleep(0.1)
if you really want to be neat about things, use ESC7 (save cursor) and ESC8 (restore cursor)
then, you write your line and at the end of it you use ESC7. at the beginning of the print statement, you use ESC8. note, unless you turn off automatic newlines, this will not work at the bottom of your tty. it will work on all lines but the bottom.
import random, time
print('this will print each dot cleanly: \x1b7')
for _ in range(10):
print('\x1b8.\x1b7')
print('print more foo: %d' %_)
time.sleep(0.1)
for shell scripting (bash), you would use printf "..." without a \n, or echo -n