write hide cursor before any other op