tui

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ANSIGreen  = lipgloss.ANSIColor(28) // 6)
	ANSIYellow = lipgloss.ANSIColor(3)
	ANSIRed    = lipgloss.ANSIColor(196)
)

Functions

This section is empty.

Types

type Logic

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

func NewLogic

func NewLogic(ui UIThread, radioData <-chan RadioData, outputDir, outputFormat string) *Logic

func (*Logic) Do

func (l *Logic) Do(f func() error)

func (*Logic) Start

func (l *Logic) Start(ctx context.Context)

func (*Logic) ToggleTrace

func (l *Logic) ToggleTrace() tea.Msg

type MainScreen

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

func NewMainScreen

func NewMainScreen(version, device string) MainScreen

func (MainScreen) Init

func (s MainScreen) Init() tea.Cmd

func (MainScreen) Update

func (s MainScreen) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MainScreen) View

func (s MainScreen) View() string

type RadioData

type RadioData struct {
	Position    data.Position
	Measurement quality.Measurement
}

type TracingStatus

type TracingStatus struct {
	Filename string
	Active   bool
}

type UIThread

type UIThread interface {
	Send(msg tea.Msg)
}

Jump to

Keyboard shortcuts

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