...

Source file src/github.com/rogpeppe/go-internal/testscript/internal/pty/pty_unsupported.go

Documentation: github.com/rogpeppe/go-internal/testscript/internal/pty

     1  //go:build !linux && !darwin
     2  // +build !linux,!darwin
     3  
     4  package pty
     5  
     6  import (
     7  	"fmt"
     8  	"os"
     9  	"os/exec"
    10  	"runtime"
    11  )
    12  
    13  const Supported = false
    14  
    15  func SetCtty(cmd *exec.Cmd, tty *os.File) error {
    16  	panic("SetCtty called on unsupported platform")
    17  }
    18  
    19  func Open() (pty, tty *os.File, err error) {
    20  	return nil, nil, fmt.Errorf("pty unsupported on %s", runtime.GOOS)
    21  }
    22  

View as plain text