Documentation ¶
Index ¶
- type PTY
- type UnixPTY
- func (pty *UnixPTY) Close() error
- func (pty *UnixPTY) GetSize() (rows, cols int, err error)
- func (pty *UnixPTY) Read(p []byte) (n int, err error)
- func (pty *UnixPTY) SetSize(rows, cols int) error
- func (pty *UnixPTY) Start(c *exec.Cmd, rows, cols int) error
- func (pty *UnixPTY) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PTY ¶
type PTY interface { Start(c *exec.Cmd, rows, cols int) error Close() error SetSize(rows, cols int) error GetSize() (rows, cols int, err error) Read(p []byte) (n int, err error) Write(p []byte) (n int, err error) }
PTY is the interface for pseudoterminal
type UnixPTY ¶
type UnixPTY struct {
// contains filtered or unexported fields
}
UnixPTY deals with unix pty
Click to show internal directories.
Click to hide internal directories.