tui

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dim

func Dim(s string) string

Dim returns dimmed text style

func Error

func Error(s string) string

Error returns error text style

func Highlight

func Highlight(s string) string

Highlight returns highlighted text style

func Info

func Info(s string) string

Info returns info text style

func Success

func Success(s string) string

Success returns success text style

func Warning

func Warning(s string) string

Warning returns warning text style

func WithBackground

func WithBackground(s lipgloss.Style) lipgloss.Style

WithBackground returns a style with the terminal background

Types

type EditMode

type EditMode int

EditMode represents the current edit state

const (
	EditNone EditMode = iota
	EditName
	EditKey
	EditVendor
)

type Layout

type Layout int
const (
	LayoutUnsupported Layout = iota
	LayoutSingle
	LayoutSplit
)

type Model

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

func New

func New(cfg *config.Config) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Tab

type Tab int
const (
	TabConfig Tab = iota
	TabStatus
	TabRoutes
	TabUsage
	TabLogs
)

Jump to

Keyboard shortcuts

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