doc.go 349 B

12345678910111213141516
  1. // Package pty provides functions for working with Unix terminals.
  2. package pty
  3. import (
  4. "errors"
  5. "os"
  6. )
  7. // ErrUnsupported is returned if a function is not
  8. // available on the current platform.
  9. var ErrUnsupported = errors.New("unsupported")
  10. // Opens a pty and its corresponding tty.
  11. func Open() (pty, tty *os.File, err error) {
  12. return open()
  13. }