May 2024 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
001: /*- 002: * Copyright (c) 1982, 1986, 1993 003: * The Regents of the University of California. All rights reserved. 004: * (c) UNIX System Laboratories, Inc. 005: * All or some portions of this file are derived from material licensed 006: * to the University of California by American Telephone and Telegraph 007: * Co. or Unix System Laboratories, Inc. and are reproduced herein with 008: * the permission of UNIX System Laboratories, Inc. 009: * 010: * Redistribution and use in source and binary forms, with or without 011: * modification, are permitted provided that the following conditions 012: * are met: 013: * 1. Redistributions of source code must retain the above copyright 014: * notice, this list of conditions and the following disclaimer. 015: * 2. Redistributions in binary form must reproduce the above copyright 016: * notice, this list of conditions and the following disclaimer in the 017: * documentation and/or other materials provided with the distribution. 018: * 4. Neither the name of the University nor the names of its contributors 019: * may be used to endorse or promote products derived from this software 020: * without specific prior written permission. 021: * 022: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 023: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 024: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 025: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 026: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 027: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 028: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 029: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 030: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 031: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 032: * SUCH DAMAGE. 033: * 034: * @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94 035: */ 036: 037: /* 038: * System wide defaults for terminal state. Linux version. 039: */ 040: #ifndef _SYS_TTYDEFAULTS_H_ 041: #define _SYS_TTYDEFAULTS_H_ 042: 043: /* 044: * Defaults on "first" open. 045: */ 046: #define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY) 047: #define TTYDEF_OFLAG (OPOST | ONLCR | XTABS) 048: #define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL) 049: #define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) 050: #define TTYDEF_SPEED (B9600) 051: 052: /* 053: * Control Character Defaults 054: */ 055: #define CTRL(x) (x&037) 056: #define CEOF CTRL('d') 057: #ifdef _POSIX_VDISABLE 058: # define CEOL _POSIX_VDISABLE 059: #else 060: # define CEOL '\0' /* XXX avoid _POSIX_VDISABLE */ 061: #endif 062: #define CERASE 0177 063: #define CINTR CTRL('c') 064: #ifdef _POSIX_VDISABLE 065: # define CSTATUS _POSIX_VDISABLE 066: #else 067: # define CSTATUS '\0' /* XXX avoid _POSIX_VDISABLE */ 068: #endif 069: #define CKILL CTRL('u') 070: #define CMIN 1 071: #define CQUIT 034 /* FS, ^\ */ 072: #define CSUSP CTRL('z') 073: #define CTIME 0 074: #define CDSUSP CTRL('y') 075: #define CSTART CTRL('q') 076: #define CSTOP CTRL('s') 077: #define CLNEXT CTRL('v') 078: #define CDISCARD CTRL('o') 079: #define CWERASE CTRL('w') 080: #define CREPRINT CTRL('r') 081: #define CEOT CEOF 082: /* compat */ 083: #define CBRK CEOL 084: #define CRPRNT CREPRINT 085: #define CFLUSH CDISCARD 086: 087: /* PROTECTED INCLUSION ENDS HERE */ 088: #endif /* !_SYS_TTYDEFAULTS_H_ */ 089: 090: /* 091: * #define TTYDEFCHARS to include an array of default control characters. 092: */ 093: #ifdef TTYDEFCHARS 094: cc_t ttydefchars[NCCS] = { 095: CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, 096: _POSIX_VDISABLE, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT, 097: CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE 098: }; 099: #undef TTYDEFCHARS 100: #endif 101: