Documentation
¶
Index ¶
- Variables
- func ConstructKeyBinding(keys []string, desc string) key.Binding
- func HuhIntRangeOptions(lower, upper int) []huh.Option[int]
- func Overlay(bg, overlay string, row, col int, ignoreMarginWhitespace bool) (string, error)
- func OverlayCenter(bg string, overlay string, ignoreMarginWhitespace bool) (string, error)
- func UpdateTypedModel[T tea.Model](model *T, msg tea.Msg) (tea.Cmd, error)
Constants ¶
This section is empty.
Variables ¶
var (
ErrInvalidTypeAssertion = errors.New("invalid type assertion")
)
Functions ¶
func ConstructKeyBinding ¶
ConstructKeyBinding creates a new binding with the given keys and a help message with the description and each of the keys.
func HuhIntRangeOptions ¶
HuhIntRangeOptions creates a new slice of integer options using the lower and upper bound (inclusive).
func Overlay ¶
Overlay writes the overlay string onto the background string at the specified row and column. Background ANSI escape sequences that would be overwritten are truncated on either side of the overlay lines. In this case, the row and column are zero indexed.
func OverlayCenter ¶
OverlayCenter writes the overlay string onto the background string such that the middle of the overlay string will be at the middle of the overlay will be at the middle of the background.
See Overlay for more.
Types ¶
This section is empty.