xref: /titanic_44/usr/src/ucbhead/sys/ttychars.h (revision 9dd0f810214fdc8e1af881a9a5c4b6927629ff9e)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ttychars {
31 	char	tc_erase;	/* erase last character */
32 	char	tc_kill;	/* erase entire line */
33 	char	tc_intrc;	/* interrupt */
34 	char	tc_quitc;	/* quit */
35 	char	tc_startc;	/* start output */
36 	char	tc_stopc;	/* stop output */
37 	char	tc_eofc;	/* end-of-file */
38 	char	tc_brkc;	/* input delimiter (like nl) */
39 	char	tc_suspc;	/* stop process signal */
40 	char	tc_dsuspc;	/* delayed stop process signal */
41 	char	tc_rprntc;	/* reprint line */
42 	char	tc_flushc;	/* flush output (toggles) */
43 	char	tc_werasc;	/* word erase */
44 	char	tc_lnextc;	/* literal next character */
45 };
46 
47 #ifndef _SYS_TERMIOS_H
48 
49 #ifndef CTRL
50 #define	CTRL(c)	((c) & 037)
51 #endif
52 
53 /* default special characters */
54 #define	CERASE	0177
55 #define	CKILL	CTRL('u')
56 #define	CINTR	CTRL('c')
57 #define	CQUIT	034		/* FS, ^\ */
58 #define	CSTART	CTRL('q')
59 #define	CSTOP	CTRL('s')
60 #define	CEOF	CTRL('d')
61 #define	CEOT	CEOF
62 #define	CBRK	0377
63 #define	CSUSP	CTRL('z')
64 #define	CDSUSP	CTRL('y')
65 #define	CRPRNT	CTRL('r')
66 #define	CFLUSH	CTRL('o')
67 #define	CWERASE	CTRL('w')
68 #define	CLNEXT	CTRL('v')
69 
70 #endif	/* _SYS_TERMIOS_H */
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif	/* _SYS_TTYCHARS_H */
77