package pty

import "os/signal/internal/pty"

Package pty is a simple pseudo-terminal package for Unix systems, implemented by calling C functions via cgo. This is only used for testing the os/signal package.

Index

Functions

func Open

func Open() (master *os.File, slave string, err error)

Open returns a master pty and the name of the linked slave tty.

Types

type PtyError

type PtyError struct {
	FuncName    string
	ErrorString string
	Errno       syscall.Errno
}

func (*PtyError) Error

func (e *PtyError) Error() string

Source Files

pty.go

Version
v1.10.0
Published
Feb 16, 2018
Platform
linux/amd64
Imports
4 packages
Last checked
now

Tools for package owners.