ttydefaults.h 926 B

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