cmake HAVE_TGETENT examples

SWI-Prolog/swipl-devel cmake/Config.cmake :231

check_function_exists(tgetent HAVE_TGETENT)