tui

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HoldTable

func HoldTable(game *eliteEngine.Game) table.Model

func SprintCmdrData

func SprintCmdrData(game *eliteEngine.Game) string

Returns a formatted string of the commander data

func SprintHelp

func SprintHelp() string

Returns a formatted help string

func SprintLocal

func SprintLocal(game *eliteEngine.Game) string

Returns a formatted string showing reachable planets

func SprintMarket

func SprintMarket(g *eliteEngine.Game) string

/ Returns a formatted string showing the local market

func SprintState

func SprintState(g *eliteEngine.Game) string

Return game state as a string

func SprintSystem

func SprintSystem(game *eliteEngine.Game, systemName string, compressed bool) string

/ Returns a formatted string showing system information

func Start

func Start() error

Types

type Tui

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

func New

func New(game eliteEngine.Game) *Tui

func (Tui) Init

func (m Tui) Init() tea.Cmd

func (Tui) Update

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

func (Tui) View

func (m Tui) View() string

Jump to

Keyboard shortcuts

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