tui

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Markdown

func Markdown(options ...Opt) *markdown

func Progress

func Progress(options ...Opt) *progress

func TableFor

func TableFor[T TableRow](options ...Opt) *table[T]

Types

type Opt

type Opt func(*opts)

func SetHeight

func SetHeight(height int) Opt

func SetWidth

func SetWidth(width int) Opt

type TableRow

type TableRow interface {
	Header() []string
	Cell(int) string
	Width(int) int
}

type Viewport

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

func NewViewport

func NewViewport(options ...Opt) *Viewport

func (*Viewport) Append

func (v *Viewport) Append(text string) error

func (*Viewport) AppendSection

func (v *Viewport) AppendSection(key, text string) error

func (*Viewport) ClearCursor

func (v *Viewport) ClearCursor() error

func (*Viewport) DeleteSection

func (v *Viewport) DeleteSection(key string) error

func (*Viewport) GotoBottom

func (v *Viewport) GotoBottom()

func (*Viewport) GotoTop

func (v *Viewport) GotoTop()

func (*Viewport) LineDown

func (v *Viewport) LineDown(n int)

func (*Viewport) LineUp

func (v *Viewport) LineUp(n int)

func (*Viewport) PageDown

func (v *Viewport) PageDown()

func (*Viewport) PageUp

func (v *Viewport) PageUp()

func (*Viewport) Resize

func (v *Viewport) Resize(width, height int) error

func (*Viewport) SetContent

func (v *Viewport) SetContent(text string) error

func (*Viewport) SetCursor

func (v *Viewport) SetCursor(key, text string) error

func (*Viewport) SetCursorVisible

func (v *Viewport) SetCursorVisible(visible bool) error

func (*Viewport) SetSection

func (v *Viewport) SetSection(key, text string) error

func (*Viewport) View

func (v *Viewport) View() string

Jump to

Keyboard shortcuts

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