how to compile in a terminfo entry

From: Ward Horner <>
Date: Thu, 12 Jun 1997 11:28:44 -0500

I want to be able to fallback on a vt100 terminfo entry, in case the
terminfo database is not present. How do I compile into my program such an

To start my program I default the terminal type to vt100 like this:

#define DEFAULT_TERM "vt100"

/* get TERM environment var or set default */

        if ((name = getenv (TERM_ENV_VAR)) == NULL)
                name = DEFAULT_TERM;

/* start ncurses on stdio terminal */

        if (newterm (name, stdout, stdin) == NULL)
                return (ERR);

What I want to do is to fall back to a vt100 terminfo entry that has been
included in this program, if newterm() returns a error.

Ward Horner

Ward Horner
Principal Software Engineer 410-872-3954
TSI Telsys, Inc. 410-872-3901 (fax)
7100 Columbia Gateway Drive
Columbia, MD 21046

--> The Future of Reconfigurable Computing Begins Here! <--
Received on Thu Jun 12 1997 - 11:49:20 EDT

This archive was generated by hypermail 2.2.0 : Mon Dec 19 2011 - 06:24:16 EST