Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func Copy(dst io.Writer, src *os.File) func() func Setsize(f *os.File, rows int, cols int) error type Pty func (p *Pty) Record(command string, envs ...string) error func (p *Pty) Size() (int, int, error) type Terminal func NewTerminal() Terminal Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Copy ¶ func Copy(dst io.Writer, src *os.File) func() 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, envs ...string) error func (*Pty) Size ¶ func (p *Pty) Size() (int, int, error) type Terminal ¶ type Terminal interface { Record(command string, envs ...string) error Size() (int, int, error) } func NewTerminal ¶ func NewTerminal() Terminal Source Files ¶ View all Source files copy.go term.go term_unix.go Directories ¶ Show internal Expand all Path Synopsis fdset Click to show internal directories. Click to hide internal directories.