full diff: https://github.com/creack/pty/compare/v1.1.11...v1.1.18 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
17 lines
348 B
Go
17 lines
348 B
Go
// 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")
|
|
|
|
// Open a pty and its corresponding tty.
|
|
func Open() (pty, tty *os.File, err error) {
|
|
return open()
|
|
}
|