Documentation ¶
Index ¶
Constants ¶
View Source
const Supported = true
Supported is true, if PTY is supported on the given platform
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PTY ¶
type PTY struct {
// contains filtered or unexported fields
}
PTY holds the pseduo-tty that an exec.Cmd is running in.
func Start ¶
Start will create start cmd and return a PTY wrapping it. The PTY implements ReadWriteCloser and must be closed when execution is done.
Note: This will overwrite stdio for cmd.
Click to show internal directories.
Click to hide internal directories.