Debian Codegraph @

testscript/internal/pty/pty_unsupported.go

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