diff options
| author | Richard M. Stallman | 1993-08-09 05:45:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-09 05:45:12 +0000 |
| commit | c5a9c3e6a6d935547450911d146ccfce32da8679 (patch) | |
| tree | cf400d59cdc4a45f5e04e5ef9559a2acab1ea515 /src | |
| parent | 98deaf97f5933e495b7d8997842bcf42d0c444aa (diff) | |
| download | emacs-c5a9c3e6a6d935547450911d146ccfce32da8679.tar.gz emacs-c5a9c3e6a6d935547450911d146ccfce32da8679.zip | |
(term_init): Improve error messages (give sh commands).
Diffstat (limited to 'src')
| -rw-r--r-- | src/term.c | 12 |
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\ |
| 1351 | If that is not the actual type of terminal you have,\n\ | ||
| 1352 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | ||
| 1353 | `setenv TERM ...') to specify the correct type. It may be necessary\n\ | ||
| 1354 | to 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\ |
| 1559 | It lacks the ability to position the cursor.\n\ | 1564 | It lacks the ability to position the cursor.\n\ |
| 1560 | If that is not the actual type of terminal you have,\n\ | 1565 | If that is not the actual type of terminal you have,\n\ |
| 1561 | use the C-shell command `setenv TERM ...' to specify the correct type.\n\ | 1566 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ |
| 1562 | It may be necessary to do `unsetenv TERMCAP' as well.\n", | 1567 | `setenv TERM ...') to specify the correct type. It may be necessary\n\ |
| 1568 | to 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 |