Commit b0347178 authored by Karl Heuer's avatar Karl Heuer
Browse files

(term_init) [TERMINFO]: Make error message more accurate.

parent 1cc9a99e
......@@ -1437,15 +1437,31 @@ term_init (terminal_type)
status = tgetent (buffer, terminal_type);
if (status < 0)
{
#ifdef TERMINFO
fatal ("Cannot open terminfo database file.\n");
#else
fatal ("Cannot open termcap database file.\n");
#endif
}
if (status == 0)
{
#ifdef TERMINFO
fatal ("Terminal type %s is not defined.\n\
If that is not the actual type of terminal you have,\n\
use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
`setenv TERM ...') to specify the correct type. It may be necessary\n\
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.\n",
terminal_type);
#else
fatal ("Terminal type %s is not defined.\n\
If that is not the actual type of terminal you have,\n\
use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
`setenv TERM ...') to specify the correct type. It may be necessary\n\
to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
terminal_type);
#endif
}
#ifdef TERMINFO
area = (char *) malloc (2044);
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment