# HG changeset patch # User Karl Heuer # Date 793685146 0 # Node ID 894369e950f530f3b68a23559454f1bb82e94307 # Parent abd2a268ed88054cbcbd2fb79872df41acdc1a89 (term_init) [TERMINFO]: Make error message more accurate. diff -r abd2a268ed88 -r 894369e950f5 src/term.c --- a/src/term.c Fri Feb 24 21:26:05 1995 +0000 +++ b/src/term.c Sat Feb 25 04:05:46 1995 +0000 @@ -1437,15 +1437,31 @@ status = tgetent (buffer, terminal_type); if (status < 0) - fatal ("Cannot open termcap database file.\n"); + { +#ifdef TERMINFO + fatal ("Cannot open terminfo database file.\n"); +#else + fatal ("Cannot open termcap database file.\n"); +#endif + } if (status == 0) - fatal ("Terminal type %s is not defined.\n\ + { +#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); - + terminal_type); +#endif + } #ifdef TERMINFO area = (char *) malloc (2044); #else