bsdinput.go 516 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // +build openbsd freebsd netbsd
  2. package liner
  3. import "syscall"
  4. const (
  5. getTermios = syscall.TIOCGETA
  6. setTermios = syscall.TIOCSETA
  7. )
  8. const (
  9. // Input flags
  10. inpck = 0x010
  11. istrip = 0x020
  12. icrnl = 0x100
  13. ixon = 0x200
  14. // Output flags
  15. opost = 0x1
  16. // Control flags
  17. cs8 = 0x300
  18. // Local flags
  19. isig = 0x080
  20. icanon = 0x100
  21. iexten = 0x400
  22. )
  23. type termios struct {
  24. Iflag uint32
  25. Oflag uint32
  26. Cflag uint32
  27. Lflag uint32
  28. Cc [20]byte
  29. Ispeed int32
  30. Ospeed int32
  31. }
  32. const cursorColumn = false