terminal

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

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

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

Terminal contains the state and configuration of an input/output user interface device. The rw field abstracts how input/output is implemented by the host.

func (*Terminal) Configure

func (t *Terminal) Configure(
	rw io.ReadWriter, prompt []rune, width, height int, flush bool,
) *Terminal

Configure initializes the Terminal configuration.

func (*Terminal) Cursor

func (t *Terminal) Cursor() *cursor.Cursor

func (*Terminal) Flush

func (t *Terminal) Flush() (n int, err error)

Flush copies bytes from the receiver's output buffer to an output device.

func (*Terminal) HandleKey

func (t *Terminal) HandleKey(k rune) (eol bool, err error)

func (*Terminal) Line

func (t *Terminal) Line() *line.Line

func (*Terminal) ReadLine

func (t *Terminal) ReadLine() (err error)

func (*Terminal) Swell

func (t *Terminal) Swell() (n int, err error)

Swell copies bytes from an input device to the receiver's input buffer.

Directories

Path Synopsis
clipboard
Package wire defines an API for transmitting serial data.
Package wire defines an API for transmitting serial data.

Jump to

Keyboard shortcuts

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