term_unix_bsd.go 349 B

123456789101112
  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build darwin || dragonfly || freebsd || netbsd || openbsd
  5. package term
  6. import "golang.org/x/sys/unix"
  7. const ioctlReadTermios = unix.TIOCGETA
  8. const ioctlWriteTermios = unix.TIOCSETA