Only set invisible cursor attribute if both curses and the terminal support it.