input

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model represents the input area state

func New

func New(width, height int) *Model

New creates a new input model

func (*Model) Blur

func (m *Model) Blur() iface.SubModel

Blur deactivates the input

func (*Model) Clear

func (m *Model) Clear()

Clear resets the input

func (*Model) Focus

func (m *Model) Focus() iface.SubModel

Focus activates the input for typing

func (*Model) Focused

func (m *Model) Focused() bool

Focused returns whether input has focus

func (*Model) SetValue

func (m *Model) SetValue(s string)

SetValue sets the input text

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (iface.SubModel, tea.Cmd)

Update handles input messages

func (*Model) Value

func (m *Model) Value() string

Value returns the current input text

func (*Model) View

func (m *Model) View() string

View renders the input area

Jump to

Keyboard shortcuts

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