move cursor to top-left before redrawing