ui

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

type Spinner struct {
	Suffix string // Public field to match briandowns/spinner API
	// contains filtered or unexported fields
}

Spinner is a minimal terminal spinner that writes plain ANSI escape sequences directly to stderr. Unlike the bubbletea-based implementation it replaces, it never probes terminal capabilities (e.g. background-color queries), so it can't block on an unresponsive pty.

func New

func New() *Spinner

New creates a new spinner with a dots style

func (*Spinner) Active

func (s *Spinner) Active() bool

Active returns whether the spinner is currently running

func (*Spinner) Restart

func (s *Spinner) Restart()

Restart stops and starts the spinner

func (*Spinner) SetSuffix

func (s *Spinner) SetSuffix(suffix string)

SetSuffix sets the text that appears after the spinner

func (*Spinner) Start

func (s *Spinner) Start()

Start begins the spinner animation

func (*Spinner) Stop

func (s *Spinner) Stop()

Stop stops the spinner animation

Jump to

Keyboard shortcuts

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