1#ifndef _SYS_TTYDEFAULTS_H 2#define _SYS_TTYDEFAULTS_H 3 4#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY) 5#define TTYDEF_OFLAG (OPOST | ONLCR | XTABS) 6#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL) 7#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) 8#define TTYDEF_SPEED (B9600) 9#define CTRL(x) (x&037) 10#define CEOF CTRL('d') 11 12#ifdef _POSIX_VDISABLE 13#define CEOL _POSIX_VDISABLE 14#define CSTATUS _POSIX_VDISABLE 15#else 16#define CEOL '\0' 17#define CSTATUS '\0' 18#endif 19 20#define CERASE 0177 21#define CINTR CTRL('c') 22#define CKILL CTRL('u') 23#define CMIN 1 24#define CQUIT 034 25#define CSUSP CTRL('z') 26#define CTIME 0 27#define CDSUSP CTRL('y') 28#define CSTART CTRL('q') 29#define CSTOP CTRL('s') 30#define CLNEXT CTRL('v') 31#define CDISCARD CTRL('o') 32#define CWERASE CTRL('w') 33#define CREPRINT CTRL('r') 34#define CEOT CEOF 35#define CBRK CEOL 36#define CRPRNT CREPRINT 37#define CFLUSH CDISCARD 38 39#endif 40