Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func Setsize(f *os.File, rows int, cols int) error type Pty func (p *Pty) Record(command string, w io.Writer, envs ...string) error func (p *Pty) Size() (int, int, error) func (p *Pty) Write(data []byte) error type Terminal func NewTerminal() Terminal Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Setsize ¶ func Setsize(f *os.File, rows int, cols int) error Types ¶ type Pty ¶ type Pty struct { Stdin *os.File Stdout *os.File } func (*Pty) Record ¶ func (p *Pty) Record(command string, w io.Writer, envs ...string) error func (*Pty) Size ¶ func (p *Pty) Size() (int, int, error) func (*Pty) Write ¶ func (p *Pty) Write(data []byte) error type Terminal ¶ type Terminal interface { Size() (int, int, error) Record(command string, writer io.Writer, envs ...string) error Write([]byte) error } func NewTerminal ¶ func NewTerminal() Terminal Source Files ¶ View all Source files terminal.go terminal_unix.go Click to show internal directories. Click to hide internal directories.