termtype
struct termtype;
enum termtype type; /* Terminal, PS, or PDF. */
static struct termp *pspdf_alloc(const struct manoutput *, enum termtype);
pspdf_alloc(const struct manoutput *outopts, enum termtype type)
char *termtype;
termtype = getenv("TERM");
if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1)))
termtype = "lpr";
termtype = optarg;
switch (tgetent(termcap, termtype)) {