# HG changeset patch # User Richard M. Stallman # Date 744875112 0 # Node ID c7bfd863aefd1d4867e5baa74da9e9a29e155152 # Parent c050d8a0c3dbeb2c4d3a3be0c3be45dbd2d3c8ae (term_init): Improve error messages (give sh commands). diff -r c050d8a0c3db -r c7bfd863aefd src/term.c --- a/src/term.c Mon Aug 09 05:03:17 1993 +0000 +++ b/src/term.c Mon Aug 09 05:45:12 1993 +0000 @@ -1347,7 +1347,12 @@ 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 @@ 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