Licensing Information

Open Source Used In Cisco DSP IP Cameras 408
__BEGIN_DECLS
typedef int (*outfuntype) __P((int));
extern int tgetent __P((void *__buffer, __const char *__termtype));
extern int tgetflag __P((__const char *__name));
extern int tgetnum __P((__const char *__name));
extern char *tgetstr __P((__const char *__name, char **__area));
extern char *tgoto __P((__const char *__cstring, int __hpos,
int __vpos));
extern char *tparam __P((__const char *__ctlstring, void *__buffer,
int __size, ...));
extern void tputs __P((__const char *__string, int __nlines,
int (*) __P((int))));
__END_DECLS
#endif /* not _TERMCAP_H */
/*
* termcap.cReplacement for the GNU Emacs termcap routines.
*These do more error checking, like preventing a loop
*with the tc= capability and buffer overflow.
*Also, these routines can stuff a whole lot more in
*one buffer because duplicate capabilities are eliminated.
*
* Version:1.3 15-Apr-1996 MvS (miquels@cistron.nl)
*
* Changelog 1.0 ??-Sep-1994 MvS Initial version
*1.1 20-Oct-1994 MvS (Broken) version for libc 4.5.19
*1.2 13-Dec-1994 MvS Fixed '\' escapes, disabled the
* multiple char. capability names.
*1.3 15-Apr-1996 MvS Ignore entries starting with '.'
* Preprocess escaped entries
*
*Copyright (C) Miquel van Smoorenburg 1994,1995,1996
*This code falls under the LGPL.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <malloc.h>
#include <string.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <termcap.h>
/* Escape sequences we know about. */