xref: /netbsd-src/lib/libterminfo/termcap.h (revision 9a92225ded62b167db7794ff93838738ac0dcbda)
1*9a92225dSroy /* $NetBSD: termcap.h,v 1.2 2011/04/11 21:13:09 roy Exp $ */
24ca00e00Sroy 
34ca00e00Sroy /*
4*9a92225dSroy  * Copyright (c) 2009, 2011 The NetBSD Foundation, Inc.
54ca00e00Sroy  *
64ca00e00Sroy  * This code is derived from software contributed to The NetBSD Foundation
74ca00e00Sroy  * by Roy Marples.
84ca00e00Sroy  *
94ca00e00Sroy  * Redistribution and use in source and binary forms, with or without
104ca00e00Sroy  * modification, are permitted provided that the following conditions
114ca00e00Sroy  * are met:
124ca00e00Sroy  * 1. Redistributions of source code must retain the above copyright
134ca00e00Sroy  *    notice, this list of conditions and the following disclaimer.
144ca00e00Sroy  * 2. Redistributions in binary form must reproduce the above copyright
154ca00e00Sroy  *    notice, this list of conditions and the following disclaimer in the
164ca00e00Sroy  *    documentation and/or other materials provided with the distribution.
174ca00e00Sroy  *
184ca00e00Sroy  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
194ca00e00Sroy  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
204ca00e00Sroy  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
214ca00e00Sroy  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
224ca00e00Sroy  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
234ca00e00Sroy  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244ca00e00Sroy  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254ca00e00Sroy  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264ca00e00Sroy  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
274ca00e00Sroy  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284ca00e00Sroy  */
294ca00e00Sroy 
304ca00e00Sroy #ifndef _TERMCAP_H_
314ca00e00Sroy #define	_TERMCAP_H_
324ca00e00Sroy 
334ca00e00Sroy #include <sys/cdefs.h>
344ca00e00Sroy 
354ca00e00Sroy __BEGIN_DECLS
364ca00e00Sroy 
374ca00e00Sroy /* Output functions.
384ca00e00Sroy  * These are still valid for terminfo. */
394ca00e00Sroy int		putp(const char *);
404ca00e00Sroy int		tputs(const char *, int, int (*)(int));
414ca00e00Sroy 
424ca00e00Sroy extern short ospeed;
434ca00e00Sroy extern char PC;
444ca00e00Sroy extern char *BC;
454ca00e00Sroy extern char *UP;
464ca00e00Sroy 
474ca00e00Sroy int		tgetent(char *, const char *);
484ca00e00Sroy char *		tgetstr(const char *, char **);
494ca00e00Sroy int		tgetflag(const char *);
504ca00e00Sroy int		tgetnum(const char *);
514ca00e00Sroy char *		tgoto(const char *, int, int);
524ca00e00Sroy 
534ca00e00Sroy __END_DECLS
544ca00e00Sroy #endif
55