#include <curses.h>
The termname() function returns a pointer to the value of the environmental variable TERM (truncated to 14 characters).
The termname() returns a pointer to the terminal's name.
None.
del_curterm(3XCURSES)