if (nlen >= sizeof(keyname)) nlen = sizeof(keyname) - 1;
cl_pfmap(sp, stype, from, flen, to, tlen)	SCR *sp;	seq_t stype;	CHAR_T *from, *to;	size_t flen, tlen;{	size_t nlen;	char *p, keyname[64];	(void)snprintf(keyname, sizeof(keyname), "kf%d", atoi(from + 1));	if ((p = tigetstr(keyname)) == NULL ||	    p == (char *)-1 || strlen(p) == 0)		p = NULL;	if (p == NULL) {		msgq_str(sp, M_ERR, from, "233|This terminal has no %s key");		return (1);	}	nlen = snprintf(keyname,	    sizeof(keyname), "function key %d", atoi(from + 1));	return (seq_set(sp, keyname, nlen,	    p, strlen(p), to, tlen, stype, SEQ_NOOVERWRITE | SEQ_SCREEN));}