terminal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowPlainTable

func ShowPlainTable(writer io.Writer, columns []table.Column, rows []table.Row)

ShowPlainTable renders a plain text formatted table to writer.

func ShowSpinner

func ShowSpinner(stop chan int)

ShowSpinner synchronously shows a spinner in the terminal until a stop signal is received. The spinner is cleared before returning.

func ShowSpinnerOut

func ShowSpinnerOut(out io.Writer, stop chan int)

ShowSpinnerOut synchronously shows a spinner in the terminal until a stop signal is received. The spinner is cleared before returning.

func WrapText

func WrapText(text string, lineWidth int) string

Types

type Model

type Model struct {
	Table table.Model
	// displayed above table
	HeaderMsg string
	//displayed below table
	HelpMsg string
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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