1 /*
2  * Copyright (c) 1995-2009, 2013-2015 Paul Mattes.
3  * Copyright (c) 2004, Don Russell.
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *     * Redistributions of source code must retain the above copyright
9  *       notice, this list of conditions and the following disclaimer.
10  *     * Redistributions in binary form must reproduce the above copyright
11  *       notice, this list of conditions and the following disclaimer in the
12  *       documentation and/or other materials provided with the distribution.
13  *     * Neither the names of Paul Mattes, Don Russell, Jeff Sparkes, GTRC nor
14  *       the names of their contributors may be used to endorse or promote
15  *       products derived from this software without specific prior written
16  *       permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY PAUL MATTES AND DON RUSSELL "AS IS" AND ANY
19  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21  * DISCLAIMED. IN NO EVENT SHALL PAUL MATTES OR DON RUSSELL BE LIABLE FOR ANY
22  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 /*
31  *	linemode.h
32  *		Header file for linemode.c.
33  */
34 
35 /* Spelled-out tty control character. */
36 struct ctl_char {
37     const char *name;
38     char value[3];
39 };
40 
41 void linemode_init(void);
42 void linemode_buf_init(void);
43 struct ctl_char *linemode_chars(void);
44 void linemode_out(const char *buf, size_t len);
45 void linemode_send_erase(void);
46 void linemode_send_kill(void);
47 void linemode_send_werase(void);
48 void linemode_dump(void);
49