Repair cursor moving in clear screen