xref: /original-bsd/sys/sys/ttychars.h (revision 3708840b)
1 /*	ttychars.h	4.3	83/05/18	*/
2 
3 /*
4  * User visible structures and constants
5  * related to terminal handling.
6  */
7 #ifndef _TTYCHARS_
8 #define	_TTYCHARS_
9 struct ttychars {
10 	char	tc_erase;	/* erase last character */
11 	char	tc_kill;	/* erase entire line */
12 	char	tc_intrc;	/* interrupt */
13 	char	tc_quitc;	/* quit */
14 	char	tc_startc;	/* start output */
15 	char	tc_stopc;	/* stop output */
16 	char	tc_eofc;	/* end-of-file */
17 	char	tc_brkc;	/* input delimiter (like nl) */
18 	char	tc_suspc;	/* stop process signal */
19 	char	tc_dsuspc;	/* delayed stop process signal */
20 	char	tc_rprntc;	/* reprint line */
21 	char	tc_flushc;	/* flush output (toggles) */
22 	char	tc_werasc;	/* word erase */
23 	char	tc_lnextc;	/* literal next character */
24 };
25 
26 #define	CTRL(c)	('c'&037)
27 
28 /* default special characters */
29 #ifdef vax
30 #define	CERASE	'#'
31 #define	CKILL	'@'
32 #define	CINTR	0177		/* DEL, ^? */
33 #endif
34 #ifdef sun
35 #define	CERASE	0177		/* DEL */
36 #define	CKILL	CTRL(u)
37 #define	CINTR	CTRL(c)
38 #endif
39 #define	CQUIT	034		/* FS, ^\ */
40 #define	CSTART	CTRL(q)
41 #define	CSTOP	CTRL(s)
42 #define	CEOF	CTRL(d)
43 #define	CEOT	CEOF
44 #define	CBRK	0377
45 #define	CSUSP	CTRL(z)
46 #define	CDSUSP	CTRL(y)
47 #define	CRPRNT	CTRL(r)
48 #define	CFLUSH	CTRL(o)
49 #define	CWERASE	CTRL(w)
50 #define	CLNEXT	CTRL(v)
51 #endif
52