You might be able to do what you want with VT100 control codes.
Something like this maybe:
CURSOR_UP_ONE = '\x1b[1A'
ERASE_LINE = '\x1b[2K'
print(CURSOR_UP_ONE + ERASE_LINE)
More Related Contents:
- Disable output buffering
- How to set sys.stdout encoding in Python 3?
- How to capture stdout output from a Python function call?
- How to open every file in a folder
- catching stdout in realtime from subprocess
- Silence the stdout of a function in Python without trashing sys.stdout and restoring each function call
- Displaying subprocess output to stdout and redirecting it
- The difference between sys.stdout.write and print?
- Redirecting stdout and stderr to a PyQt4 QTextEdit from a secondary thread
- Python: How to get stdout after running os.system? [duplicate]
- Why is printing to stdout so slow? Can it be sped up?
- Intercepting stdout of a subprocess while it is running
- subprocess readline hangs waiting for EOF
- Python read from subprocess stdout and stderr separately while preserving order
- How to redirect stdout and stderr to logger in Python
- Running an interactive command from within Python
- Command executed with Paramiko does not produce any output
- Print to the same line and not a new line?
- How do I check if stdin has some data?
- Suppress stdout / stderr print from Python functions
- Redirecting stdio from a command in os.system() in Python
- How to redirect stdout to a Tkinter Text widget
- How can I redirect print output of a function in python [duplicate]
- pygame.error “couldn’t open image.png” only in command prompt
- Force another program’s standard output to be unbuffered using Python
- Integer File Descriptor “0” in open()
- How can I print multiple things on the same line, one at a time?
- Piping output of subprocess.Popen to files
- How can I capture the stdout output of a child process?
- How to make print() output UTF-8 in Python 3.0?