mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
17 lines
349 B
Go
17 lines
349 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")
|
||
|
|
||
|
// Opens a pty and its corresponding tty.
|
||
|
func Open() (pty, tty *os.File, err error) {
|
||
|
return open()
|
||
|
}
|