/* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)ttydefaults.h 7.2 (Berkeley) 11/20/89 */ /* * System wide defaults for terminal state. */ #ifndef _TTYDEFAULTS_ #define _TTYDEFAULTS_ /* * Defaults on "first" open. */ #define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON) #define TTYDEF_OFLAG (OPOST | ONLCR | OXTABS) #define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN) #define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) #define TTYDEF_SPEED (B9600) /* * Control Character Defaults */ #define CTRL(x) (x&037) #define CEOF CTRL('d') #define CEOL ((unsigned)'\377') /* XXX avoid _POSIX_VDISABLE */ #define CERASE 0177 #define CINTR CTRL('c') #define CINFO ((unsigned)'\377') /* XXX avoid _POSIX_VDISABLE */ #define CKILL CTRL('u') #define CMIN 1 #define CQUIT 034 /* FS, ^\ */ #define CSUSP CTRL('z') #define CTIME 0 #define CDSUSP CTRL('y') #define CSTART CTRL('q') #define CSTOP CTRL('s') #define CLNEXT CTRL('v') #define CFLUSHO CTRL('o') #define CWERASE CTRL('w') #define CREPRINT CTRL('r') #define CEOT CEOF /* compat */ #define CBRK CEOL #define CRPRNT CREPRINT #define CFLUSH CFLUSHO /* PROTECTED INCLUSION ENDS HERE */ #endif /* _TTYDEFAULTS_ */ /* * #define TTYDEFCHARS to include an array of default control characters. */ #ifdef TTYDEFCHARS cc_t ttydefchars[NCC] = { CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, _POSIX_VDISABLE, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT, CFLUSHO, CMIN, CTIME, CINFO, _POSIX_VDISABLE }; #undef TTYDEFCHARS #endif /* TTYDEFCHARS */