setupterm - access the terminfo database
#include <term.h> int setupterm(char *term, int fildes, int *errret);
Refer to del_curterm().