removed cursor changes to minimize terminal blinking