8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libbc / inc / include / sys / ttychars.h
blob8ab232d3d2e7df03ceb4ee748db02d31cd278bcd
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
22 #pragma ident "%Z%%M% %I% %E% SMI"
25 * User visible structures and constants
26 * related to terminal handling.
29 #ifndef _sys_ttychars_h
30 #define _sys_ttychars_h
32 struct ttychars {
33 char tc_erase; /* erase last character */
34 char tc_kill; /* erase entire line */
35 char tc_intrc; /* interrupt */
36 char tc_quitc; /* quit */
37 char tc_startc; /* start output */
38 char tc_stopc; /* stop output */
39 char tc_eofc; /* end-of-file */
40 char tc_brkc; /* input delimiter (like nl) */
41 char tc_suspc; /* stop process signal */
42 char tc_dsuspc; /* delayed stop process signal */
43 char tc_rprntc; /* reprint line */
44 char tc_flushc; /* flush output (toggles) */
45 char tc_werasc; /* word erase */
46 char tc_lnextc; /* literal next character */
49 #ifndef CTRL
50 #define CTRL(c) ('c'&037)
51 #endif
54 * default special characters.
55 * guarded because termio[s].h also define these.
57 #ifndef CERASE
58 #define CERASE 0177
59 #define CKILL CTRL(u)
60 #define CINTR CTRL(c)
61 #define CQUIT 034 /* FS, ^\ */
62 #define CSTART CTRL(q)
63 #define CSTOP CTRL(s)
64 #define CEOF CTRL(d)
65 #define CEOT CEOF
66 #define CBRK 0377
67 #define CSUSP CTRL(z)
68 #define CDSUSP CTRL(y)
69 #define CRPRNT CTRL(r)
70 #define CFLUSH CTRL(o)
71 #define CWERASE CTRL(w)
72 #define CLNEXT CTRL(v)
73 #endif /* !CERASE */
75 #endif /* !_sys_ttychars_h */