Codebase list golang-github-creack-pty / 2497551e-ab1b-4ec4-a0fb-c9b9f8d39055/upstream/1.1.18+git20220421.1.0d412c9 start_windows.go
2497551e-ab1b-4ec4-a0fb-c9b9f8d39055/upstream/1.1.18+git20220421.1.0d412c9

Tree @2497551e-ab1b-4ec4-a0fb-c9b9f8d39055/upstream/1.1.18+git20220421.1.0d412c9 (Download .tar.gz)

start_windows.go @2497551e-ab1b-4ec4-a0fb-c9b9f8d39055/upstream/1.1.18+git20220421.1.0d412c9raw · history · blame

//go:build windows
// +build windows

package pty

import (
	"os"
	"os/exec"
)

// StartWithSize assigns a pseudo-terminal tty os.File to c.Stdin, c.Stdout,
// and c.Stderr, calls c.Start, and returns the File of the tty's
// corresponding pty.
//
// This will resize the pty to the specified size before starting the command.
// Starts the process in a new session and sets the controlling terminal.
func StartWithSize(cmd *exec.Cmd, ws *Winsize) (*os.File, error) {
	return nil, ErrUnsupported
}