comparison src/term.c @ 10824:894369e950f5

(term_init) [TERMINFO]: Make error message more accurate.
author Karl Heuer <kwzh@gnu.org>
date Sat, 25 Feb 1995 04:05:46 +0000
parents d564078d10c6
children 030b401afd0e
comparison
equal deleted inserted replaced
10823:abd2a268ed88 10824:894369e950f5
1435 1435
1436 Wcm_clear (); 1436 Wcm_clear ();
1437 1437
1438 status = tgetent (buffer, terminal_type); 1438 status = tgetent (buffer, terminal_type);
1439 if (status < 0) 1439 if (status < 0)
1440 fatal ("Cannot open termcap database file.\n"); 1440 {
1441 #ifdef TERMINFO
1442 fatal ("Cannot open terminfo database file.\n");
1443 #else
1444 fatal ("Cannot open termcap database file.\n");
1445 #endif
1446 }
1441 if (status == 0) 1447 if (status == 0)
1442 fatal ("Terminal type %s is not defined.\n\ 1448 {
1449 #ifdef TERMINFO
1450 fatal ("Terminal type %s is not defined.\n\
1451 If that is not the actual type of terminal you have,\n\
1452 use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
1453 `setenv TERM ...') to specify the correct type. It may be necessary\n\
1454 to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.\n",
1455 terminal_type);
1456 #else
1457 fatal ("Terminal type %s is not defined.\n\
1443 If that is not the actual type of terminal you have,\n\ 1458 If that is not the actual type of terminal you have,\n\
1444 use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ 1459 use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
1445 `setenv TERM ...') to specify the correct type. It may be necessary\n\ 1460 `setenv TERM ...') to specify the correct type. It may be necessary\n\
1446 to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n", 1461 to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1447 terminal_type); 1462 terminal_type);
1448 1463 #endif
1464 }
1449 #ifdef TERMINFO 1465 #ifdef TERMINFO
1450 area = (char *) malloc (2044); 1466 area = (char *) malloc (2044);
1451 #else 1467 #else
1452 area = (char *) malloc (strlen (buffer)); 1468 area = (char *) malloc (strlen (buffer));
1453 #endif /* not TERMINFO */ 1469 #endif /* not TERMINFO */