xref: /titanic_44/usr/src/uts/common/sys/ttychars.h (revision 34f9b3eef6fdadbda0a846aa4d68691ac40eace5)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 /*
26  * University Copyright- Copyright (c) 1982, 1986, 1988
27  * The Regents of the University of California
28  * All Rights Reserved
29  *
30  * University Acknowledgment- Portions of this document are derived from
31  * software developed by the University of California, Berkeley, and its
32  * contributors.
33  */
34 
35 #ifndef _SYS_TTYCHARS_H
36 #define	_SYS_TTYCHARS_H
37 
38 #pragma ident	"%Z%%M%	%I%	%E% SMI"
39 
40 #ifdef	__cplusplus
41 extern "C" {
42 #endif
43 
44 /*
45  * User visible structures and constants
46  * related to terminal handling.
47  */
48 
49 struct ttychars {
50 	char	tc_erase;	/* erase last character */
51 	char	tc_kill;	/* erase entire line */
52 	char	tc_intrc;	/* interrupt */
53 	char	tc_quitc;	/* quit */
54 	char	tc_startc;	/* start output */
55 	char	tc_stopc;	/* stop output */
56 	char	tc_eofc;	/* end-of-file */
57 	char	tc_brkc;	/* input delimiter (like nl) */
58 	char	tc_suspc;	/* stop process signal */
59 	char	tc_dsuspc;	/* delayed stop process signal */
60 	char	tc_rprntc;	/* reprint line */
61 	char	tc_flushc;	/* flush output (toggles) */
62 	char	tc_werasc;	/* word erase */
63 	char	tc_lnextc;	/* literal next character */
64 };
65 
66 #ifndef _SYS_TERMIOS_H
67 
68 #define	CTRL(c)	((c)&037)
69 
70 /* default BSD special characters */
71 #define	CERASE	0177
72 #define	CKILL	CTRL('u')
73 #define	CINTR	CTRL('c')
74 #define	CQUIT	034		/* FS, ^\ */
75 #define	CSTART	CTRL('q')
76 #define	CSTOP	CTRL('s')
77 #define	CEOF	CTRL('d')
78 #define	CEOT	CEOF
79 #define	CBRK	0377
80 #define	CSUSP	CTRL('z')
81 #define	CDSUSP	CTRL('y')
82 #define	CRPRNT	CTRL('r')
83 #define	CFLUSH	CTRL('o')
84 #define	CWERASE	CTRL('w')
85 #define	CLNEXT	CTRL('v')
86 
87 #endif /* _SYS_TERMIOS_H */
88 
89 #ifdef	__cplusplus
90 }
91 #endif
92 
93 #endif /* _SYS_TTYCHARS_H */
94