[PATCH] fix cursor when clearing the screen