[terminal] redraw cursor on focus change