Implement cursor moving when cleaning the screen.