github.com/olljanat/moby@v1.13.1/pkg/term/tc_other.go (about)

     1  // +build !windows
     2  // +build !linux !cgo
     3  // +build !solaris !cgo
     4  
     5  package term
     6  
     7  import (
     8  	"syscall"
     9  	"unsafe"
    10  )
    11  
    12  func tcget(fd uintptr, p *Termios) syscall.Errno {
    13  	_, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(getTermios), uintptr(unsafe.Pointer(p)))
    14  	return err
    15  }
    16  
    17  func tcset(fd uintptr, p *Termios) syscall.Errno {
    18  	_, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, setTermios, uintptr(unsafe.Pointer(p)))
    19  	return err
    20  }