tui

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConfigTea

func RunConfigTea(cmd_choices []string, cmd_msg string) string

func RunDisplayTea

func RunDisplayTea(displayText string)

func StartTextTUI

func StartTextTUI(title, placeholder string) string

Types

type Model

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

func NewModel

func NewModel() 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 TextModel

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

func (TextModel) Init

func (m TextModel) Init() tea.Cmd

func (TextModel) Update

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

func (TextModel) View

func (m TextModel) View() string

Jump to

Keyboard shortcuts

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