Returns the verbose name of a terminal.
Curses Library (libcurses.a)
#include <curses.h>
char *longname(void);
The longname subroutine generates a verbose description for the current terminal. The maximum length of a verbose description is 128 bytes. It is defined only after the call to the initscr or newterm subroutines.
The area is overwritten by each call to the newterm subroutine, so the value should be saved if you plan on using the longname subroutine with multiple terminals.
Upon successful completion, the longname subroutine returns a pointer to the description specified above. Otherwise, it returns a null pointer on error.
The initscr (initscr and newterm Subroutine) subroutine, newterm (newterm Subroutine) subroutine, setupterm (setupterm Subroutine) subroutine.
Curses Overview for Programming, List of Curses Subroutines, Understanding Terminals with Curses in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.