20 lines
299 B
C
20 lines
299 B
C
/*
|
|
* Simulation of termcap using terminfo.
|
|
*/
|
|
|
|
#include "curses.ext"
|
|
|
|
/* @(#)tgetent.c 1.1 94/10/31 SMI (1.8 3/6/83) */
|
|
|
|
int
|
|
tgetent(bp, name)
|
|
char *bp, *name;
|
|
{
|
|
int rv;
|
|
|
|
if (setupterm(name, 1, &rv) >= 0)
|
|
/* Leave things as they were (for compatibility) */
|
|
reset_shell_mode();
|
|
return rv;
|
|
}
|