Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsole ¶
NewConsole allocates a new console and returns the File for its master and path for its slave.
Types ¶
type ConnectionSet ¶
type ConnectionSet struct {
In, Out, Err transport.Connection
}
ConnectionSet is a structure defining the readers and writers the Core implementation should forward a process's stdio through.
func (*ConnectionSet) Close ¶
func (s *ConnectionSet) Close() error
Close closes each stdio connection.
func (*ConnectionSet) Files ¶
func (s *ConnectionSet) Files() (_ *FileSet, err error)
Files returns a FileSet with an os.File for each connection in the connection set.
func (*ConnectionSet) NewTtyRelay ¶
func (s *ConnectionSet) NewTtyRelay(pty *os.File) *TtyRelay
NewTtyRelay returns a new TTY relay for a given master PTY file.
type TtyRelay ¶
type TtyRelay struct {
// contains filtered or unexported fields
}
TtyRelay relays IO between a set of stdio connections and a master PTY file.
func (*TtyRelay) ResizeConsole ¶
ResizeConsole sends the appropriate resize to a pTTY FD
Click to show internal directories.
Click to hide internal directories.