aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-02-25 04:05:46 +0000
committerKarl Heuer1995-02-25 04:05:46 +0000
commitb03471782d533dac71a8b02e6ec2287c78329f9f (patch)
tree61664aa2a508f9e76e71550b4c4795bed5b1abe5 /src
parent1cc9a99ec39b2af6bdb6b0cddef798e83e650842 (diff)
downloademacs-b03471782d533dac71a8b02e6ec2287c78329f9f.tar.gz
emacs-b03471782d533dac71a8b02e6ec2287c78329f9f.zip
(term_init) [TERMINFO]: Make error message more accurate.
Diffstat (limited to 'src')
-rw-r--r--src/term.c24
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)
1437 1437
1438 status = tgetent (buffer, terminal_type); 1438 status = tgetent (buffer, terminal_type);
1439 if (status < 0) 1439 if (status < 0)
1440 fatal ("Cannot open termcap database file.\n"); 1440 {
1441#ifdef TERMINFO
1442 fatal ("Cannot open terminfo database file.\n");
1443#else
1444 fatal ("Cannot open termcap database file.\n");
1445#endif
1446 }
1441 if (status == 0) 1447 if (status == 0)
1442 fatal ("Terminal type %s is not defined.\n\ 1448 {
1449#ifdef TERMINFO
1450 fatal ("Terminal type %s is not defined.\n\
1451If that is not the actual type of terminal you have,\n\
1452use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
1453`setenv TERM ...') to specify the correct type. It may be necessary\n\
1454to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.\n",
1455 terminal_type);
1456#else
1457 fatal ("Terminal type %s is not defined.\n\
1443If that is not the actual type of terminal you have,\n\ 1458If that is not the actual type of terminal you have,\n\
1444use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ 1459use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
1445`setenv TERM ...') to specify the correct type. It may be necessary\n\ 1460`setenv TERM ...') to specify the correct type. It may be necessary\n\
1446to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n", 1461to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1447 terminal_type); 1462 terminal_type);
1448 1463#endif
1464 }
1449#ifdef TERMINFO 1465#ifdef TERMINFO
1450 area = (char *) malloc (2044); 1466 area = (char *) malloc (2044);
1451#else 1467#else