ipinput

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 9 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 {
	Prompt            string
	Style             lipgloss.Style
	FocusedForeground lipgloss.Color
	// contains filtered or unexported fields
}

func New

func New() Model

func (*Model) Blur

func (m *Model) Blur()

func (Model) Cmd

func (m Model) Cmd(s string) tea.Cmd

func (*Model) Focus

func (m *Model) Focus()

func (*Model) Focused

func (m *Model) Focused() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) IsDone

func (m *Model) IsDone() bool

func (*Model) IsValid

func (m *Model) IsValid() bool

func (Model) Update

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

func (*Model) Value

func (m *Model) Value() net.IP

func (Model) View

func (m Model) View() string

type Msg

type Msg string

func (Msg) String

func (m Msg) String() string

type OctetInput

type OctetInput struct {
	FocusedForeground lipgloss.Color
	// contains filtered or unexported fields
}

func NewOctetInput

func NewOctetInput() OctetInput

func (*OctetInput) Blur

func (o *OctetInput) Blur()

func (OctetInput) Cmd

func (o OctetInput) Cmd(s string) tea.Cmd

func (OctetInput) Done

func (o OctetInput) Done() bool

func (OctetInput) Empty

func (o OctetInput) Empty() bool

func (*OctetInput) Focus

func (o *OctetInput) Focus()

func (*OctetInput) Focused

func (o *OctetInput) Focused() bool

func (OctetInput) Init

func (o OctetInput) Init() tea.Cmd

func (OctetInput) IsValid

func (o OctetInput) IsValid() bool

func (OctetInput) Update

func (o OctetInput) Update(msg tea.Msg) (OctetInput, tea.Cmd)

func (*OctetInput) Value

func (o *OctetInput) Value() uint8

func (OctetInput) View

func (o OctetInput) View() string

Jump to

Keyboard shortcuts

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