import sys def print_there(x, y, text): sys.stdout.write("x1b7x1b[%d;%df%sx1b8" % (x, y, text)) sys.stdout.flush()