I am writing a program where I want the cursor to print letters on one line, but then delete them as if the person were typing, making a mistake, deleting back to the error and continuing to type there.
All I have so far is the ability to write them on one line:
import sys, time
write = sys.stdout.write
for c in text:
write(c)
time.sleep(.5)
source
share