1
0

ttydefaults.h 831 B

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