2 * System wide defaults for terminal state.
4 #ifndef _SYS_TTYDEFAULTS_H_
5 #define _SYS_TTYDEFAULTS_H_
7 /* NetBSD-like definition of values aready set up in termios.h */
10 * Defaults on "first" open.
12 #define TTYDEF_IFLAG (BRKINT | ICRNL | IXON | IXANY)
13 #define TTYDEF_OFLAG (OPOST | ONLCR )
14 #define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE)
15 #define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
16 #define TTYDEF_SPEED (B9600)
19 * Control Character Defaults
21 #define CTRL(x) (x&037)
22 #define CEOF CTRL('d')
23 #define CEOL _POSIX_VDISABLE
24 #define CERASE CTRL('h')
25 #define CINTR CTRL('c')
26 #define CSTATUS CTRL('t')
27 #define CKILL CTRL('u')
29 #define CQUIT 034 /* FS, ^\ */
30 #define CSUSP CTRL('z')
32 #define CDSUSP CTRL('y')
33 #define CSTART CTRL('q')
34 #define CSTOP CTRL('s')
35 #define CLNEXT CTRL('v')
36 #define CDISCARD CTRL('o')
37 #define CWERASE CTRL('w')
38 #define CREPRINT CTRL('r')
42 #define CRPRNT CREPRINT
43 #define CFLUSH CDISCARD
45 #endif /* _SYS_TTYDEFAULTS_H_ */