github.com/devops-filetransfer/sshego@v7.0.4+incompatible/pty_windows.go (about)

     1  // +build !darwin !linux
     2  // +build windows
     3  
     4  package sshego
     5  
     6  import (
     7  	"os"
     8  	"os/exec"
     9  )
    10  
    11  func ptyStart(c *exec.Cmd) (*os.File, error) {
    12  	return os.Open(os.DevNull)
    13  }
    14  
    15  // SetWinsize sets the size of the given pty.
    16  func SetWinsize(fd uintptr, w, h uint32) {
    17  
    18  	// Under windows, a No-op. At least until we figure out how!
    19  
    20  	//ws := &Winsize{Width: uint16(w), Height: uint16(h)}
    21  	//syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(syscall.TIOCSWINSZ), uintptr(unsafe.Pointer(ws)))
    22  }