• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #define CEOL '\0'
13 #define CSTATUS '\0'
14 
15 #define CERASE 0177
16 #define CINTR CTRL('c')
17 #define CKILL CTRL('u')
18 #define CMIN 1
19 #define CQUIT 034
20 #define CSUSP CTRL('z')
21 #define CTIME 0
22 #define CDSUSP CTRL('y')
23 #define CSTART CTRL('q')
24 #define CSTOP CTRL('s')
25 #define CLNEXT CTRL('v')
26 #define CDISCARD CTRL('o')
27 #define CWERASE CTRL('w')
28 #define CREPRINT CTRL('r')
29 #define CEOT CEOF
30 #define CBRK CEOL
31 #define CRPRNT CREPRINT
32 #define CFLUSH CDISCARD
33 
34 #endif
35