diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-02-25 04:05:46 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-02-25 04:05:46 +0000 |
commit | b03471782d533dac71a8b02e6ec2287c78329f9f (patch) | |
tree | 61664aa2a508f9e76e71550b4c4795bed5b1abe5 /src/term.c | |
parent | 1cc9a99ec39b2af6bdb6b0cddef798e83e650842 (diff) | |
download | emacs-b03471782d533dac71a8b02e6ec2287c78329f9f.tar.gz |
(term_init) [TERMINFO]: Make error message more accurate.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c index 463862a8adf..4caed037bf2 100644 --- a/src/term.c +++ b/src/term.c @@ -1437,15 +1437,31 @@ term_init (terminal_type) 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 |