fixed blinking in terminal when cursor action is done in middle of line 2