xref: /illumos-gate/usr/src/ucbhead/sys/ttychars.h (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1 /*
2  * Copyright 1997 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
7 /*	  All Rights Reserved  	*/
8 
9 /*
10  * Copyright (c) 1982, 1986 Regents of the University of California.
11  * All rights reserved.  The Berkeley software License Agreement
12  * specifies the terms and conditions for redistribution.
13  *
14  */
15 
16 /*
17  * User visible structures and constants
18  * related to terminal handling.
19  */
20 
21 #ifndef _SYS_TTYCHARS_H
22 #define	_SYS_TTYCHARS_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 struct ttychars {
29 	char	tc_erase;	/* erase last character */
30 	char	tc_kill;	/* erase entire line */
31 	char	tc_intrc;	/* interrupt */
32 	char	tc_quitc;	/* quit */
33 	char	tc_startc;	/* start output */
34 	char	tc_stopc;	/* stop output */
35 	char	tc_eofc;	/* end-of-file */
36 	char	tc_brkc;	/* input delimiter (like nl) */
37 	char	tc_suspc;	/* stop process signal */
38 	char	tc_dsuspc;	/* delayed stop process signal */
39 	char	tc_rprntc;	/* reprint line */
40 	char	tc_flushc;	/* flush output (toggles) */
41 	char	tc_werasc;	/* word erase */
42 	char	tc_lnextc;	/* literal next character */
43 };
44 
45 #ifndef _SYS_TERMIOS_H
46 
47 #ifndef CTRL
48 #define	CTRL(c)	((c) & 037)
49 #endif
50 
51 /* default special characters */
52 #define	CERASE	0177
53 #define	CKILL	CTRL('u')
54 #define	CINTR	CTRL('c')
55 #define	CQUIT	034		/* FS, ^\ */
56 #define	CSTART	CTRL('q')
57 #define	CSTOP	CTRL('s')
58 #define	CEOF	CTRL('d')
59 #define	CEOT	CEOF
60 #define	CBRK	0377
61 #define	CSUSP	CTRL('z')
62 #define	CDSUSP	CTRL('y')
63 #define	CRPRNT	CTRL('r')
64 #define	CFLUSH	CTRL('o')
65 #define	CWERASE	CTRL('w')
66 #define	CLNEXT	CTRL('v')
67 
68 #endif	/* _SYS_TERMIOS_H */
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif	/* _SYS_TTYCHARS_H */
75