Python Move Cursor do poprzedniej linii
"\033[F" – move cursor to the beginning of the previous line
"\033[A" – move cursor up one line
Example:
import sys
sys.stdout.write("\033[F")
sys.stdout.write("This line is replaced one")
sys.stdout.write("\033[A")
sys.stdout.write("More text is added to the previous line")
sys.stdout.flush()
TheTechTiger