terminal

package
v0.0.0-...-9eb79f6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

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

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

func NewTerminal() Terminal

Jump to

Keyboard shortcuts

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