Documentation ¶
Overview ¶
Package pty provides functions for working with Unix terminals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported")
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 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.
func StartFaker ¶
StartFaker allows for handing in an interface that can act like a process
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.