terminfo
static char *terminfo = &_terminfo[0];
terminfo = (char *) malloc(termsize * sizeof (char));
if (terminfo == (char *) NULL)
(void) sprintf(terminfo, "TERMINFO=%s", termNinfo);
newenviron[0] = terminfo;
register char *terminfo;
if ((terminfo = getenv("TERMINFO")) && *terminfo)
tfd = open_terminfo_file(terminfo, term);
char *terminfo,
open_terminfo_file(terminfo, term)
char *terminfo,
path = makepath(terminfo, first_letter, term, (char *)0);
struct terminfo term;
ti_set_term (const struct terminfo *new)
grub_memmove (&term, new, sizeof (struct terminfo));
ti_get_term(struct terminfo *copy)
grub_memmove (copy, &term, sizeof (struct terminfo));
struct terminfo term =
void ti_set_term (const struct terminfo *new);
void ti_get_term (struct terminfo *copy);
char *terminfo; /* The value of $TERMINFO */
terminfo = getenv("TERMINFO");
if (terminfo != NULL)
(void) sprintf(buffer, "%s%s%s", terminfo, tail, term);
#define M_TERMINFO_DIR "/usr/lib/terminfo"
char const *err_msg, *terminfo;
terminfo = __m_getenv("TERMINFO");
if (terminfo == (char *) 0 || terminfo[0] == '\0') {
terminfo = def_terminfo;
terminfo = (const char *) strdup((char *) terminfo);
if (terminfo == (char *) 0) {
len = strlen(terminfo) + 3 + strlen(tm);
if ((path_max = m_pathmax(terminfo)) == -1 || path_max < len
(void) sprintf(filename, "%s/%c/%s", terminfo, tolower(tm[0]), tm);
if (terminfo != def_terminfo)
free((void *) terminfo);
const char *err_msg, *terminfo;
terminfo = getenv("TERMINFO");
if (terminfo == NULL || terminfo[0] == '\0') {
terminfo = def_terminfo;
terminfo = (const char *) strdup((char *) terminfo);
if (terminfo == NULL) {
len = strlen(terminfo) + 3 + strlen(tm);
(void) sprintf(filename, "%s/%c/%s", terminfo, tm[0], tm);
if (terminfo != def_terminfo)
free((void *) terminfo);