terminal_freebsd.go 334 B

12345678910111213141516171819
  1. package term
  2. import (
  3. "syscall"
  4. )
  5. const ioctlReadTermios = syscall.TIOCGETA
  6. // Go 1.2 doesn't include Termios for FreeBSD. This should be added in 1.3 and this could be merged with terminal_darwin.
  7. type Termios struct {
  8. Iflag uint32
  9. Oflag uint32
  10. Cflag uint32
  11. Lflag uint32
  12. Cc [20]uint8
  13. Ispeed uint32
  14. Ospeed uint32
  15. }