tui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveItemStyle

func ActiveItemStyle() lipgloss.Style

func ErrorStyle

func ErrorStyle() lipgloss.Style

func InactiveItemStyle

func InactiveItemStyle() lipgloss.Style

func SubtitleStyle

func SubtitleStyle() lipgloss.Style

func SuccessStyle

func SuccessStyle() lipgloss.Style

func TitleStyle

func TitleStyle() lipgloss.Style

Types

type Model

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

Model is the root Bubble Tea model — a state machine that routes to screens.

func NewModel

func NewModel(eng *core.Engine) Model

NewModel creates the root TUI model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init returns the startup command for the model.

func (Model) Update

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

Update handles root-level messages and routes screen changes.

func (Model) View

func (m Model) View() string

View renders the active screen.

type ScreenID

type ScreenID int

ScreenID identifies which screen is active.

const (
	ScreenHome ScreenID = iota
	ScreenBackendStatus
	ScreenRouteExplorer
	ScreenConvert
	ScreenProgress
	ScreenInstallPrompt
)

Jump to

Keyboard shortcuts

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