xref: /netbsd-src/usr.bin/tset/extern.h (revision be0c033d10de50f9dd7b8e5007ed807884682fdf)
1*be0c033dSjoerg /*	$NetBSD: extern.h,v 1.14 2011/09/06 18:34:12 joerg Exp $	*/
2fb937a59Sjtc 
3dab5e017Scgd /*-
4fb937a59Sjtc  * Copyright (c) 1991, 1993
5fb937a59Sjtc  *	The Regents of the University of California.  All rights reserved.
6dab5e017Scgd  *
7dab5e017Scgd  * Redistribution and use in source and binary forms, with or without
8dab5e017Scgd  * modification, are permitted provided that the following conditions
9dab5e017Scgd  * are met:
10dab5e017Scgd  * 1. Redistributions of source code must retain the above copyright
11dab5e017Scgd  *    notice, this list of conditions and the following disclaimer.
12dab5e017Scgd  * 2. Redistributions in binary form must reproduce the above copyright
13dab5e017Scgd  *    notice, this list of conditions and the following disclaimer in the
14dab5e017Scgd  *    documentation and/or other materials provided with the distribution.
1589aaa1bbSagc  * 3. Neither the name of the University nor the names of its contributors
16dab5e017Scgd  *    may be used to endorse or promote products derived from this software
17dab5e017Scgd  *    without specific prior written permission.
18dab5e017Scgd  *
19dab5e017Scgd  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20dab5e017Scgd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21dab5e017Scgd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22dab5e017Scgd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23dab5e017Scgd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24dab5e017Scgd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25dab5e017Scgd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26dab5e017Scgd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27dab5e017Scgd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28dab5e017Scgd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29dab5e017Scgd  * SUCH DAMAGE.
30dab5e017Scgd  *
31fb937a59Sjtc  *	@(#)extern.h	8.1 (Berkeley) 6/9/93
32dab5e017Scgd  */
33dab5e017Scgd 
34dab5e017Scgd extern struct termios mode, oldmode;
3598eb8895Sroy extern int ncolumns, isreset, nlines;
36dab5e017Scgd 
37*be0c033dSjoerg void	 add_mapping(const char *, char *);
38*be0c033dSjoerg void	 tset_cat(const char *);
39*be0c033dSjoerg const	 char *get_terminfo_entry(const char *);
40*be0c033dSjoerg const	 char *mapped(const char *);
41*be0c033dSjoerg int	 outc(int);
42*be0c033dSjoerg void	 reset_mode(void);
43*be0c033dSjoerg void	 set_control_chars(int, int, int);
44*be0c033dSjoerg void	 set_conversions(int);
45*be0c033dSjoerg void	 set_init(void);
46*be0c033dSjoerg void	 wrtermcap(char *);
47