terminal

package
v0.0.1-release Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGradientText

func MakeGradientText(baseStyle lipgloss.Style, str string) string

Types

type CyclingChars

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

CyclingChars is the model that manages the animation that displays while the output is being generated.

func NewCyclingChars

func NewCyclingChars(initialCharsSize uint, label string, r *lipgloss.Renderer, s Styles) CyclingChars

func (CyclingChars) Init

func (c CyclingChars) Init() tea.Cmd

Init initializes the animation.

func (CyclingChars) Update

func (c CyclingChars) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages.

func (CyclingChars) View

func (c CyclingChars) View() string

View renders the animation.

type Styles

type Styles struct {
	ErrorHeader  lipgloss.Style
	ErrorDetails lipgloss.Style

	Prefix lipgloss.Style
	// contains filtered or unexported fields
}

func NewStyles

func NewStyles(r *lipgloss.Renderer) (s Styles)

Jump to

Keyboard shortcuts

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