Versions in this module Expand all Collapse all v0 v0.0.2 Dec 26, 2022 v0.0.1 Jul 22, 2022 Changes in this version + const TIOCGWINSZ — darwin/amd64, js/wasm, linux/amd64 + const TIOCSWINSZ — darwin/amd64, js/wasm, linux/amd64 + var ErrUnsupported = errors.New("unsupported") + func Getsize(t *os.File) (rows, cols int, err error) + func InheritSize(pty, tty *os.File) error + func Open() (pty, tty *os.File, err error) + func Setsize(*os.File, *Winsize) error — windows/amd64 + func Setsize(t *os.File, ws *Winsize) error — darwin/amd64, js/wasm, linux/amd64 + func Start(cmd *exec.Cmd) (*os.File, error) + func StartWithAttrs(c *exec.Cmd, sz *Winsize, attrs *syscall.SysProcAttr) (*os.File, error) + func StartWithSize(cmd *exec.Cmd, ws *Winsize) (*os.File, error) + type Winsize struct + Cols uint16 + Rows uint16 + X uint16 + Y uint16 + func GetsizeFull(*os.File) (*Winsize, error) + func GetsizeFull(t *os.File) (size *Winsize, err error)