Set cursor type to box