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 #ifdef __cplusplus 39 extern "C" { 40 #endif 41 42 /* 43 * User visible structures and constants 44 * related to terminal handling. 45 */ 46 47 struct ttychars { 48 char tc_erase; /* erase last character */ 49 char tc_kill; /* erase entire line */ 50 char tc_intrc; /* interrupt */ 51 char tc_quitc; /* quit */ 52 char tc_startc; /* start output */ 53 char tc_stopc; /* stop output */ 54 char tc_eofc; /* end-of-file */ 55 char tc_brkc; /* input delimiter (like nl) */ 56 char tc_suspc; /* stop process signal */ 57 char tc_dsuspc; /* delayed stop process signal */ 58 char tc_rprntc; /* reprint line */ 59 char tc_flushc; /* flush output (toggles) */ 60 char tc_werasc; /* word erase */ 61 char tc_lnextc; /* literal next character */ 62 }; 63 64 #ifndef _SYS_TERMIOS_H 65 66 #define CTRL(c) ((c)&037) 67 68 /* default BSD special characters */ 69 #define CERASE 0177 70 #define CKILL CTRL('u') 71 #define CINTR CTRL('c') 72 #define CQUIT 034 /* FS, ^\ */ 73 #define CSTART CTRL('q') 74 #define CSTOP CTRL('s') 75 #define CEOF CTRL('d') 76 #define CEOT CEOF 77 #define CBRK 0377 78 #define CSUSP CTRL('z') 79 #define CDSUSP CTRL('y') 80 #define CRPRNT CTRL('r') 81 #define CFLUSH CTRL('o') 82 #define CWERASE CTRL('w') 83 #define CLNEXT CTRL('v') 84 #define CSTATUS CTRL('t') 85 86 #endif /* _SYS_TERMIOS_H */ 87 88 #ifdef __cplusplus 89 } 90 #endif 91 92 #endif /* _SYS_TTYCHARS_H */ 93