term

package
v0.0.0-...-4ce41d0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefBufferSize int = 10240

DefBufferSize is max length buffer to read and to write from/to terminal

Variables

This section is empty.

Functions

This section is empty.

Types

type Term

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

Term is main terminal structure

func (*Term) Close

func (t *Term) Close()

Close is function to close opened terminal

func (*Term) Read

func (t *Term) Read(b []byte) (size int, err error)

Read is function to read data from opened terminal

func (*Term) Resize

func (t *Term) Resize(cols, rows int) error

Resize is function to resize opened terminal

func (*Term) Start

func (t *Term) Start(command string) (err error)

Start is function to prepare terminal for using

func (*Term) Write

func (t *Term) Write(b []byte) (err error)

Write is function to write data to opened terminal

Jump to

Keyboard shortcuts

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