1570af302Sopenharmony_ci#ifndef _SYS_TTYDEFAULTS_H
2570af302Sopenharmony_ci#define _SYS_TTYDEFAULTS_H
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
5570af302Sopenharmony_ci#define TTYDEF_OFLAG (OPOST | ONLCR | XTABS)
6570af302Sopenharmony_ci#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
7570af302Sopenharmony_ci#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL)
8570af302Sopenharmony_ci#define TTYDEF_SPEED (B9600)
9570af302Sopenharmony_ci#define CTRL(x) ((x)&037)
10570af302Sopenharmony_ci#define CEOF CTRL('d')
11570af302Sopenharmony_ci
12570af302Sopenharmony_ci#define CEOL '\0'
13570af302Sopenharmony_ci#define CSTATUS '\0'
14570af302Sopenharmony_ci
15570af302Sopenharmony_ci#define CERASE 0177
16570af302Sopenharmony_ci#define CINTR CTRL('c')
17570af302Sopenharmony_ci#define CKILL CTRL('u')
18570af302Sopenharmony_ci#define CMIN 1
19570af302Sopenharmony_ci#define CQUIT 034
20570af302Sopenharmony_ci#define CSUSP CTRL('z')
21570af302Sopenharmony_ci#define CTIME 0
22570af302Sopenharmony_ci#define CDSUSP CTRL('y')
23570af302Sopenharmony_ci#define CSTART CTRL('q')
24570af302Sopenharmony_ci#define CSTOP CTRL('s')
25570af302Sopenharmony_ci#define CLNEXT CTRL('v')
26570af302Sopenharmony_ci#define CDISCARD CTRL('o')
27570af302Sopenharmony_ci#define CWERASE CTRL('w')
28570af302Sopenharmony_ci#define CREPRINT CTRL('r')
29570af302Sopenharmony_ci#define CEOT CEOF
30570af302Sopenharmony_ci#define CBRK CEOL
31570af302Sopenharmony_ci#define CRPRNT CREPRINT
32570af302Sopenharmony_ci#define CFLUSH CDISCARD
33570af302Sopenharmony_ci
34570af302Sopenharmony_ci#endif
35