package pty
import "github.com/kr/pty"
Package pty provides functions for working with Unix terminals.
Index ¶
- Variables
- func Getsize(t *os.File) (rows, cols int, err error)
- func Open() (pty, tty *os.File, err error)
- func Start(c *exec.Cmd) (pty *os.File, err error)
Variables ¶
ErrUnsupported is returned if a function is not available on the current platform.
Functions ¶
func Getsize ¶
Getsize returns the number of rows (lines) and cols (positions in each line) in terminal t.
func Open ¶
Opens a pty and its corresponding tty.
func Start ¶
Start assigns a pseudo-terminal tty os.File to c.Stdin, c.Stdout, and c.Stderr, calls c.Start, and returns the File of the tty's corresponding pty.
Source Files ¶
doc.go ioctl.go ioctl_bsd.go pty_darwin.go run.go util.go ztypes_amd64.go
- Version
- v1.0.0
- Published
- Mar 7, 2017
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- now –
Tools for package owners.