tea

package
v0.0.0-...-0dc8428 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Return

func Return(err error) error

func Run

func Run[T tea.Model](t T) (T, error)

Types

type Event

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

func NewEvent

func NewEvent() *Event

func (*Event) Cursor

func (t *Event) Cursor() int

func (*Event) CursorDown

func (t *Event) CursorDown()

func (*Event) CursorUp

func (t *Event) CursorUp()

func (*Event) FullHelp

func (t *Event) FullHelp() [][]key.Binding

func (*Event) Index

func (t *Event) Index() int

func (*Event) Init

func (t *Event) Init() tea.Cmd

func (*Event) NewStatus

func (t *Event) NewStatus(s string) tea.Cmd

func (*Event) SetSize

func (t *Event) SetSize(width, height int)

func (*Event) ShortHelp

func (t *Event) ShortHelp() []key.Binding

func (*Event) Update

func (t *Event) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Event) View

func (t *Event) View() string

Jump to

Keyboard shortcuts

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