term

package
v0.0.0-...-ef4c1fe Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Term

type Term struct {
	ASCII  bool
	Width  int
	Height int
	// contains filtered or unexported fields
}

Term is the main terminal.

func New

func New(opt *cli.Options) Term

New contructs a new terminal.

func (*Term) Destroy

func (t *Term) Destroy()

Destroy closes the terminal display and shows the original display.

func (*Term) Draw

func (t *Term) Draw(m *matrix.Matrix)

Draw displays the passed matrix onto the terminal.

func (*Term) HandleInput

func (t *Term) HandleInput(signal chan bool)

HandleInput waits for key presses and takes the appropriate action.

func (*Term) Update

func (t *Term) Update()

Update commits all changes to the terminal display.

Jump to

Keyboard shortcuts

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