term

package
v0.0.0-...-988a29f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSize

func GetSize(fd uintptr) (width, height int, err error)

func RawMode

func RawMode(t *Term) error

func SetSize

func SetSize(fd uintptr, width, height int) (err error)

Types

type Pty

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

func CopyTo

func CopyTo(cmd *exec.Cmd, fd *os.File) (*Pty, error)

func NewPty

func NewPty() (*Pty, error)

func (*Pty) Close

func (p *Pty) Close()

func (*Pty) Copy

func (p *Pty) Copy(o *os.File) (err error)

func (*Pty) Read

func (p *Pty) Read(b []byte) (int, error)

func (*Pty) SetCmd

func (p *Pty) SetCmd(c *exec.Cmd)

func (*Pty) WindowChange

func (p *Pty) WindowChange(w, h int) error

func (*Pty) Write

func (p *Pty) Write(b []byte) (int, error)

type Term

type Term struct {
	*term.Term
}

func New

func New(f *os.File, options ...func(*Term) error) (*Term, error)

func (*Term) SetOption

func (t *Term) SetOption(options ...func(*Term) error) error

Jump to

Keyboard shortcuts

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