{"modulePath":"github.com/taskcluster/taskcluster-worker","version":"v0.1.20","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package pty\n\n## Constants\n\n```go\nconst Supported = true\n```\nSupported is true, if PTY is supported on the given platform\n\n## Types\n\n```go\ntype PTY struct {\n\t// contains filtered or unexported fields\n}\n```\nPTY holds the pseduo-tty that an exec.Cmd is running in.\n\n```go\nfunc Start(cmd *exec.Cmd) (*PTY, error)\n```\nStart will create start cmd and return a PTY wrapping it. The PTY implements ReadWriteCloser and must be closed when execution is done.\n\nNote: This will overwrite stdio for cmd.\n\n```go\nfunc (pty *PTY) Close() error\n```\nClose will close the PTY\n\n```go\nfunc (pty *PTY) Read(p []byte) (n int, err error)\n```\n\n```go\nfunc (pty *PTY) SetSize(cols, rows uint16) error\n```\nSetSize will set the TTY size, returns engines.ErrFeatureNotSupported on unsupported platforms.\n\n```go\nfunc (pty *PTY) Write(p []byte) (n int, err error)\n```\n\n","path":"github.com/taskcluster/taskcluster-worker/plugins/interactive/pty","name":"pty","synopsis":"","isRedistributable":true}
