fixed missing cursor in terminal