File: pty_unsupported.go

package info (click to toggle)
golang-github-rogpeppe-go-internal 1.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: makefile: 6
file content (21 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//go:build !linux && !darwin
// +build !linux,!darwin

package pty

import (
	"fmt"
	"os"
	"os/exec"
	"runtime"
)

const Supported = false

func SetCtty(cmd *exec.Cmd, tty *os.File) error {
	panic("SetCtty called on unsupported platform")
}

func Open() (pty, tty *os.File, err error) {
	return nil, nil, fmt.Errorf("pty unsupported on %s", runtime.GOOS)
}