def set_size(height, width): stdout.write("\x1b[8;{rows};{cols}t".format(rows=height, cols=width)) return