pty

package
v0.0.0-...-577668c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

TODO: High-level file comment.

TODO: High-level file comment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pty

type Pty struct {
	// contains filtered or unexported fields
}

func OpenPty

func OpenPty() (*Pty, error)

func (*Pty) AttachIO

func (pty *Pty) AttachIO(r io.Reader, w io.Writer)

Attach to IO

func (*Pty) AttachPty

func (pty *Pty) AttachPty(cmd *exec.Cmd)

Execute an exec.Cmd attached to a pty

func (*Pty) Close

func (pty *Pty) Close()

Close the devices

func (*Pty) Resize

func (pty *Pty) Resize(rows, cols, xpix, ypix uint16) error

Resize the pty

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL