You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
349 B
16 lines
349 B
// Package pty provides functions for working with Unix terminals. |
|
package pty |
|
|
|
import ( |
|
"errors" |
|
"os" |
|
) |
|
|
|
// ErrUnsupported is returned if a function is not |
|
// available on the current platform. |
|
var ErrUnsupported = errors.New("unsupported") |
|
|
|
// Opens a pty and its corresponding tty. |
|
func Open() (pty, tty *os.File, err error) { |
|
return open() |
|
}
|
|
|