1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 * 6 * @(#)ttydefaults.h 1.2 (Berkeley) 10/18/88 7 */ 8 9 /* 10 * System wide defaults of terminal state. 11 */ 12 #ifndef _TTYDEFAULTS_ 13 #define _TTYDEFAULTS_ 14 15 #define CTRL(x) (x&037) 16 /* 17 * Control Character Defaults 18 */ 19 #define CEOF CTRL('d') 20 #define CEOL _POSIX_VDISABLE 21 #define CERASE 0177 22 #define CINTR CTRL('c') 23 #define CERASE2 _POSIX_VDISABLE 24 #define CKILL CTRL('u') 25 #define CMIN 1 26 #define CQUIT 034 /* FS, ^\ */ 27 #define CSUSP CTRL('z') 28 #define CTIME 0 29 #define CDSUSP CTRL('y') 30 #define CSTART CTRL('q') 31 #define CSTOP CTRL('s') 32 #define CLNEXT CTRL('v') 33 #define CFLUSHO CTRL('o') 34 #define CWERASE CTRL('w') 35 #define CREPRINT CTRL('r') 36 #define CEOT CEOF 37 38 /* COMPAT_43 */ 39 #define CBRK CEOL 40 #define CRPRNT CREPRINT 41 #define CFLUSH CFLUSHO 42 43 /* 44 * Settings on first open of a tty. 45 */ 46 #define TTYDEF_IFLAG (BRKINT | ISTRIP | IMAXBEL | IEXTEN | IXON) 47 #define TTYDEF_OFLAG (0) 48 #define TTYDEF_LFLAG (ECHO | ICANON | ISIG) 49 #define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) 50 #define TTYDEF_SPEED (B9600) 51 52 #endif /*_TTYDEFAULTS_*/ 53 54 /* 55 * define TTYDEFCHARS to include an array of default control characters. 56 */ 57 #ifdef TTYDEFCHARS 58 u_char ttydefchars[NCC] = { 59 CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, CQUOTE, 60 CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT, 61 CFLUSHO, CMIN, CTIME, CERASE2, _POSIX_VDISABLE 62 }; 63 #endif /*TTYDEFCHARS*/ 64