term

package
v0.0.0-...-7c7cdb6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 3 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 {
	Width  int
	Height int
	// contains filtered or unexported fields
}

Term is the main terminal.

func New

func New() 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(buffer [][]rune)

Draw displays the passed runes onto the terminal.

func (*Term) DrawText

func (t *Term) DrawText(x int, y int, text string)

DrawText draws text on 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