Added cursor-flags initiation.