ui

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

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

UI represents the application UI

func NewUI

func NewUI(unitSystem string, ftp int) *UI

NewUI creates a new UI instance

func (*UI) SetInputCapture

func (ui *UI) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey)

SetInputCapture sets a custom input capture function for the application. This allows the main application logic to define keybindings.

func (*UI) Start

func (ui *UI) Start() error

Start starts the UI

func (*UI) Stop

func (ui *UI) Stop()

Stop stops the UI

func (*UI) UpdateResistance

func (ui *UI) UpdateResistance(level int8)

UpdateResistance updates the resistance display

func (*UI) UpdateStatus

func (ui *UI) UpdateStatus(format string, args ...any)

UpdateStatus updates the status message

func (*UI) UpdateTelemetry

func (ui *UI) UpdateTelemetry(data ble.Telemetry)

UpdateTelemetry updates the UI with new telemetry data

Jump to

Keyboard shortcuts

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