github.com/damirazo/docker@v1.9.0/pkg/term/tc_other.go (about)

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