tui

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTea

func StartTea(pvKeyBytes []byte)

StartTea the entry point for the UI. Initializes the model.

Types

type MainModel

type MainModel struct {
	ActiveMenuID uint
	// contains filtered or unexported fields
}

func New

func New(pvKeyBytes []byte) MainModel

New initialize the main model for your program

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

Init run any intial IO on program start

func (MainModel) Update

func (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handle IO and commands

func (MainModel) View

func (m MainModel) View() string

View return the text UI to be output to the terminal

Jump to

Keyboard shortcuts

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