From c5a9c3e6a6d935547450911d146ccfce32da8679 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 9 Aug 1993 05:45:12 +0000 Subject: [PATCH] (term_init): Improve error messages (give sh commands). --- src/term.c | 12 +++++++++--- 1 file 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 -- 2.39.5