syscalls.go 773 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // +build ignore
  2. package termbox
  3. /*
  4. #include <termios.h>
  5. #include <sys/ioctl.h>
  6. */
  7. import "C"
  8. type syscall_Termios C.struct_termios
  9. const (
  10. syscall_IGNBRK = C.IGNBRK
  11. syscall_BRKINT = C.BRKINT
  12. syscall_PARMRK = C.PARMRK
  13. syscall_ISTRIP = C.ISTRIP
  14. syscall_INLCR = C.INLCR
  15. syscall_IGNCR = C.IGNCR
  16. syscall_ICRNL = C.ICRNL
  17. syscall_IXON = C.IXON
  18. syscall_OPOST = C.OPOST
  19. syscall_ECHO = C.ECHO
  20. syscall_ECHONL = C.ECHONL
  21. syscall_ICANON = C.ICANON
  22. syscall_ISIG = C.ISIG
  23. syscall_IEXTEN = C.IEXTEN
  24. syscall_CSIZE = C.CSIZE
  25. syscall_PARENB = C.PARENB
  26. syscall_CS8 = C.CS8
  27. syscall_VMIN = C.VMIN
  28. syscall_VTIME = C.VTIME
  29. // on darwin change these to (on *bsd too?):
  30. // C.TIOCGETA
  31. // C.TIOCSETA
  32. syscall_TCGETS = C.TCGETS
  33. syscall_TCSETS = C.TCSETS
  34. )