changeset 4499:c7bfd863aefd

(term_init): Improve error messages (give sh commands).
author Richard M. Stallman <rms@gnu.org>
date Mon, 09 Aug 1993 05:45:12 +0000
parents c050d8a0c3db
children 56d7c4beae9f
files src/term.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Mon Aug 09 05:03:17 1993 +0000
+++ b/src/term.c	Mon Aug 09 05:45:12 1993 +0000
@@ -1347,7 +1347,12 @@
   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 @@
     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