start_windows.go 498 B

12345678910111213141516171819
  1. //go:build windows
  2. // +build windows
  3. package pty
  4. import (
  5. "os"
  6. "os/exec"
  7. )
  8. // StartWithSize assigns a pseudo-terminal tty os.File to c.Stdin, c.Stdout,
  9. // and c.Stderr, calls c.Start, and returns the File of the tty's
  10. // corresponding pty.
  11. //
  12. // This will resize the pty to the specified size before starting the command.
  13. // Starts the process in a new session and sets the controlling terminal.
  14. func StartWithSize(cmd *exec.Cmd, ws *Winsize) (*os.File, error) {
  15. return nil, ErrUnsupported
  16. }