Every bit of documentation I've found suggests that this should work, but the cursor position doesn't return to 0,0.
colorama.init()
def move (y, x):
print("\033[%d;%dH" % (y, x))
for file in original_file:
for element in root.iter():
all_lines = all_lines+1
if element.text != None:
if element.tag in field_list:
if len(element.text) > field_list[element.tag]:
corrected_lines = corrected_lines+1
move(0, 0)
working_message(username, window_width)
print("{3}: {0} \n {1} to {2}\n---".format(element.tag, len(element.text), field_list[element.tag], corrected_lines))
print(corrected_lines)
print(all_lines)
element.text = element.text[field_list[element.tag]]
The important bits being that colorama is initialized, then every loop the cursor should be moved to 0,0 using the move(0,0) function (passing as string of "\033[0;0H" to print).