diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-06-28 10:05:35 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-06-28 10:05:35 +0000 |
commit | 4a418bce4e1d27ac69c22ecb19cb0057059a32c6 (patch) | |
tree | 53c06c64b8faf13ecde4f033a182e8dc75c5d09d /src/term.c | |
parent | d06845b4ab9e15c1ca6cee6418c86bbaeb1625b2 (diff) | |
download | emacs-4a418bce4e1d27ac69c22ecb19cb0057059a32c6.tar.gz |
(term_init): Alternative error messages for TERMCAP/TERMINFO.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c index 91ba9866fb3..c7eb2ca6c7d 100644 --- a/src/term.c +++ b/src/term.c @@ -1696,7 +1696,16 @@ If that is not the actual type of terminal you have, use either the\n\ DCL command `SET TERMINAL/DEVICE= ...' for DEC-compatible terminals,\n\ or `define EMACS_TERM \"terminal type\"' for non-DEC terminals.\n", terminal_type); -#else +#else /* not VMS */ +# ifdef TERMINFO + 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 Bourne shell command `TERM=... export TERM' (C-shell:\n\ +`setenv TERM ...') to specify the correct type. It may be necessary\n\ +to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.\n", + terminal_type); +# else /* TERMCAP */ 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\ @@ -1704,7 +1713,8 @@ 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 +# endif /* TERMINFO */ +#endif /*VMS */ if (FRAME_HEIGHT (selected_frame) <= 0 || FRAME_WIDTH (selected_frame) <= 0) fatal ("The frame size has not been specified."); |