tui

package
v0.0.0-...-88544f8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplyMoveList

func CreateApplyMoveList() list.Model

func CreateExploreMoveList

func CreateExploreMoveList(solution []cmn.Move) list.Model

func CreateSpinner

func CreateSpinner() spinner.Model

func InitialModel

func InitialModel(c cmn.Cube, solved cmn.Cube, solver cmn.Solver) model

func NewEditKeyMap

func NewEditKeyMap() keymap

func NewExploreKeyMap

func NewExploreKeyMap() keymap

Types

type EditMenu

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

func (EditMenu) Update

func (e EditMenu) Update(msg tea.Msg) (Menu, tea.Cmd)

func (EditMenu) View

func (e EditMenu) View() string

type ExploreMenu

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

func (ExploreMenu) Update

func (e ExploreMenu) Update(msg tea.Msg) (Menu, tea.Cmd)

func (ExploreMenu) View

func (e ExploreMenu) View() string
type Menu interface {
	Update(msg tea.Msg) (Menu, tea.Cmd)
	View() string
}

type SolutionMsg

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

Jump to

Keyboard shortcuts

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