tui

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpdateInterval    time.Duration
	AfterCompletion   time.Duration
	RightMargin       int = 10
	MinimumTableWidth int = 120
	MaxVerticalRows   int = 15
)
View Source
var Debug = false

Functions

func DebugLog added in v0.0.3

func DebugLog(v ...interface{})

func DebugLogf added in v0.0.3

func DebugLogf(format string, v ...interface{})

func NewProgram

func NewProgram(m Model, fullScreen bool) *tea.Program

Types

type Model

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

func NewModel

func NewModel(monitor *pgsp.Pgsp) 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 Option

type Option func(*Model) error

Jump to

Keyboard shortcuts

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