summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-08-09 05:45:12 +0000
committerRichard M. Stallman <rms@gnu.org>1993-08-09 05:45:12 +0000
commite1e181481073081fe9db19d2b933a4cf610540de (patch)
treeddb5aa04123080f0763b62910e82025e812f5f74 /src/term.c
parent27edbaafbfa17c8a7e940af23283646e178e00da (diff)
downloademacs-e1e181481073081fe9db19d2b933a4cf610540de.tar.gz
(term_init): Improve error messages (give sh commands).
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index 954263c6f0d..bf6098ee6af 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1347,7 +1347,12 @@ term_init (terminal_type)
if (status < 0)
fatal ("Cannot open termcap database file.\n");
if (status == 0)
- fatal ("Terminal type %s is not defined.\n", terminal_type);
+ 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);
#ifdef TERMINFO
area = (char *) malloc (2044);
@@ -1558,8 +1563,9 @@ or `define EMACS_TERM \"terminal type\"' for non-DEC terminals.\n",
fatal ("Terminal type \"%s\" is not powerful enough to run Emacs.\n\
It lacks the ability to position the cursor.\n\
If that is not the actual type of terminal you have,\n\
-use the C-shell command `setenv TERM ...' to specify the correct type.\n\
-It may be necessary to do `unsetenv TERMCAP' as well.\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
if (FRAME_HEIGHT (selected_frame) <= 0