2013-09-13 03:42:26 +00:00
|
|
|
// Package pty provides functions for working with Unix terminals.
|
|
|
|
package pty
|
|
|
|
|
|
|
|
import (
|
2014-03-10 20:21:30 +00:00
|
|
|
"errors"
|
2013-09-13 03:42:26 +00:00
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2014-03-10 20:21:30 +00:00
|
|
|
// ErrUnsupported is returned if a function is not
|
|
|
|
// available on the current platform.
|
|
|
|
var ErrUnsupported = errors.New("unsupported")
|
|
|
|
|
2013-09-13 03:42:26 +00:00
|
|
|
// Opens a pty and its corresponding tty.
|
|
|
|
func Open() (pty, tty *os.File, err error) {
|
|
|
|
return open()
|
|
|
|
}
|