github.com/dolfly/pty@v1.2.1/run.go (about) 1 package pty 2 3 import ( 4 "os/exec" 5 ) 6 7 // Start assigns a pseudo-terminal Tty to c.Stdin, c.Stdout, 8 // and c.Stderr, calls c.Start, and returns the File of the tty's 9 // corresponding Pty. 10 // 11 // Starts the process in a new session and sets the controlling terminal. 12 func Start(c *exec.Cmd) (pty Pty, err error) { 13 return StartWithSize(c, nil) 14 }