tui

package
Version: v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 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 Tui

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

Tui implements UI

func NewTui

func NewTui() *Tui

NewTui creates a new Tui.

func (*Tui) Close

func (ui *Tui) Close() error

Close terminates the Tui.

func (*Tui) Init

func (ui *Tui) Init(eventCh chan<- event.Event) (err error)

Init initializes the Tui.

func (*Tui) Redraw

func (ui *Tui) Redraw(s state.State) error

Redraw redraws the state.

func (*Tui) Run

func (ui *Tui) Run(kms map[mode.Mode]*key.Manager)

Run the Tui.

func (*Tui) Size

func (ui *Tui) Size() (int, int)

Size returns the size for the screen.

Jump to

Keyboard shortcuts

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