errorpopup

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapAndLimit

func WrapAndLimit(s string, maxLen, maxLines int) string

Wraps the text to the given length and also limits no. of lines, adds a "..." line if exceeding.

Types

type ErrorPopup

type ErrorPopup struct {
	Width    int
	Height   int
	Message  string
	Title    string
	Location string
}

func NewErrorPopup

func NewErrorPopup(w, h int, msg, title, location string) *ErrorPopup

func (*ErrorPopup) Init

func (s *ErrorPopup) Init() tea.Cmd

func (*ErrorPopup) Update

func (s *ErrorPopup) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ErrorPopup) View

func (s *ErrorPopup) View() string

Jump to

Keyboard shortcuts

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