Commit c5a9c3e6 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(term_init): Improve error messages (give sh commands).

parent 98deaf97
...@@ -1347,7 +1347,12 @@ term_init (terminal_type) ...@@ -1347,7 +1347,12 @@ term_init (terminal_type)
if (status < 0) if (status < 0)
fatal ("Cannot open termcap database file.\n"); fatal ("Cannot open termcap database file.\n");
if (status == 0) 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 #ifdef TERMINFO
area = (char *) malloc (2044); area = (char *) malloc (2044);
...@@ -1558,8 +1563,9 @@ or `define EMACS_TERM \"terminal type\"' for non-DEC terminals.\n", ...@@ -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\ fatal ("Terminal type \"%s\" is not powerful enough to run Emacs.\n\
It lacks the ability to position the cursor.\n\ It lacks the ability to position the cursor.\n\
If that is not the actual type of terminal you have,\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\ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
It may be necessary to do `unsetenv TERMCAP' as well.\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 #endif
if (FRAME_HEIGHT (selected_frame) <= 0 if (FRAME_HEIGHT (selected_frame) <= 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment