aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-09 05:45:12 +0000
committerRichard M. Stallman1993-08-09 05:45:12 +0000
commitc5a9c3e6a6d935547450911d146ccfce32da8679 (patch)
treecf400d59cdc4a45f5e04e5ef9559a2acab1ea515 /src
parent98deaf97f5933e495b7d8997842bcf42d0c444aa (diff)
downloademacs-c5a9c3e6a6d935547450911d146ccfce32da8679.tar.gz
emacs-c5a9c3e6a6d935547450911d146ccfce32da8679.zip
(term_init): Improve error messages (give sh commands).
Diffstat (limited to 'src')
-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)
1347 if (status < 0) 1347 if (status < 0)
1348 fatal ("Cannot open termcap database file.\n"); 1348 fatal ("Cannot open termcap database file.\n");
1349 if (status == 0) 1349 if (status == 0)
1350 fatal ("Terminal type %s is not defined.\n", terminal_type); 1350 fatal ("Terminal type %s is not defined.\n\
1351If that is not the actual type of terminal you have,\n\
1352use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
1353`setenv TERM ...') to specify the correct type. It may be necessary\n\
1354to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1355 terminal_type);
1351 1356
1352#ifdef TERMINFO 1357#ifdef TERMINFO
1353 area = (char *) malloc (2044); 1358 area = (char *) malloc (2044);
@@ -1558,8 +1563,9 @@ or `define EMACS_TERM \"terminal type\"' for non-DEC terminals.\n",
1558 fatal ("Terminal type \"%s\" is not powerful enough to run Emacs.\n\ 1563 fatal ("Terminal type \"%s\" is not powerful enough to run Emacs.\n\
1559It lacks the ability to position the cursor.\n\ 1564It lacks the ability to position the cursor.\n\
1560If that is not the actual type of terminal you have,\n\ 1565If that is not the actual type of terminal you have,\n\
1561use the C-shell command `setenv TERM ...' to specify the correct type.\n\ 1566use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
1562It may be necessary to do `unsetenv TERMCAP' as well.\n", 1567`setenv TERM ...') to specify the correct type. It may be necessary\n\
1568to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1563 terminal_type); 1569 terminal_type);
1564#endif 1570#endif
1565 if (FRAME_HEIGHT (selected_frame) <= 0 1571 if (FRAME_HEIGHT (selected_frame) <= 0