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.12.0-rc.1
Published
Feb 11, 2019
Platform
linux/amd64
Imports
4 packages
Last checked
6 minutes ago

Tools for package owners.