terminal

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2016 License: GPL-3.0 Imports: 13 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pty

type Pty struct {
	Stdin  *os.File
	Stdout *os.File
}

func (*Pty) Record

func (p *Pty) Record(command string, w io.Writer) error

func (*Pty) Size

func (p *Pty) Size() (int, int, error)

func (*Pty) Write added in v1.0.0

func (p *Pty) Write(data []byte) error

type Terminal

type Terminal interface {
	Size() (int, int, error)
	Record(string, io.Writer) error
	Write([]byte) error
}

func NewTerminal added in v1.0.0

func NewTerminal() Terminal

Jump to

Keyboard shortcuts

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