runereader_bsd.go 418 B

12345678910111213
  1. // copied from: https://github.com/golang/crypto/blob/master/ssh/terminal/util_bsd.go
  2. // Copyright 2013 The Go Authors. All rights reserved.
  3. // Use of this source code is governed by a BSD-style
  4. // license that can be found in the LICENSE file.
  5. // +build darwin dragonfly freebsd netbsd openbsd
  6. package terminal
  7. import "syscall"
  8. const ioctlReadTermios = syscall.TIOCGETA
  9. const ioctlWriteTermios = syscall.TIOCSETA