Documentation
¶
Overview ¶
Package pty wraps github.com/creack/pty to provide a simple Session type for running interactive commands inside a pseudo-terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is a single PTY-backed command. Construct with New, then Start.
func (*Session) Start ¶
Start launches cmd inside a freshly allocated PTY. The returned session owns the PTY file descriptor. The caller is responsible for calling Close() when finished.
Click to show internal directories.
Click to hide internal directories.