xref: /minix3/lib/libterminfo/termcap.h (revision 0c3ae37f525eceade8dc047e551f5c9cb33faeb1)
1*0c3ae37fSLionel Sambuc /* $NetBSD: termcap.h,v 1.2 2011/04/11 21:13:09 roy Exp $ */
251e66a47SVivek Prakash 
351e66a47SVivek Prakash /*
4*0c3ae37fSLionel Sambuc  * Copyright (c) 2009, 2011 The NetBSD Foundation, Inc.
551e66a47SVivek Prakash  *
651e66a47SVivek Prakash  * This code is derived from software contributed to The NetBSD Foundation
751e66a47SVivek Prakash  * by Roy Marples.
851e66a47SVivek Prakash  *
951e66a47SVivek Prakash  * Redistribution and use in source and binary forms, with or without
1051e66a47SVivek Prakash  * modification, are permitted provided that the following conditions
1151e66a47SVivek Prakash  * are met:
1251e66a47SVivek Prakash  * 1. Redistributions of source code must retain the above copyright
1351e66a47SVivek Prakash  *    notice, this list of conditions and the following disclaimer.
1451e66a47SVivek Prakash  * 2. Redistributions in binary form must reproduce the above copyright
1551e66a47SVivek Prakash  *    notice, this list of conditions and the following disclaimer in the
1651e66a47SVivek Prakash  *    documentation and/or other materials provided with the distribution.
1751e66a47SVivek Prakash  *
1851e66a47SVivek Prakash  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1951e66a47SVivek Prakash  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2051e66a47SVivek Prakash  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2151e66a47SVivek Prakash  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2251e66a47SVivek Prakash  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2351e66a47SVivek Prakash  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2451e66a47SVivek Prakash  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2551e66a47SVivek Prakash  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2651e66a47SVivek Prakash  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2751e66a47SVivek Prakash  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2851e66a47SVivek Prakash  */
2951e66a47SVivek Prakash 
3051e66a47SVivek Prakash #ifndef _TERMCAP_H_
3151e66a47SVivek Prakash #define	_TERMCAP_H_
3251e66a47SVivek Prakash 
3351e66a47SVivek Prakash #include <sys/cdefs.h>
3451e66a47SVivek Prakash 
3551e66a47SVivek Prakash __BEGIN_DECLS
3651e66a47SVivek Prakash 
3751e66a47SVivek Prakash /* Output functions.
3851e66a47SVivek Prakash  * These are still valid for terminfo. */
3951e66a47SVivek Prakash int		putp(const char *);
4051e66a47SVivek Prakash int		tputs(const char *, int, int (*)(int));
4151e66a47SVivek Prakash 
4251e66a47SVivek Prakash extern short ospeed;
4351e66a47SVivek Prakash extern char PC;
4451e66a47SVivek Prakash extern char *BC;
4551e66a47SVivek Prakash extern char *UP;
4651e66a47SVivek Prakash 
4751e66a47SVivek Prakash int		tgetent(char *, const char *);
4851e66a47SVivek Prakash char *		tgetstr(const char *, char **);
4951e66a47SVivek Prakash int		tgetflag(const char *);
5051e66a47SVivek Prakash int		tgetnum(const char *);
5151e66a47SVivek Prakash char *		tgoto(const char *, int, int);
5251e66a47SVivek Prakash 
5351e66a47SVivek Prakash __END_DECLS
5451e66a47SVivek Prakash #endif
55