display

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLines

func ClearLines(w io.Writer, n int)

ClearLines writes ANSI escape sequences that move the cursor up n lines and clear each one so the next render overwrites the previous output in-place. When n is 0 this is a no-op.

func RenderInitProgress

func RenderInitProgress(states []models.InitScriptState, spinner string, useAnsi bool, showHeader bool) []string

RenderInitProgress formats a list of init script states into display lines. spinner is the current spinner character used for running scripts (pass "" for a final/static render). useAnsi controls whether ANSI colour codes are included. showHeader prepends a "Running init scripts..." header line when true. Each returned string is one line without a trailing newline.

func SpinnerFrame

func SpinnerFrame(tick int) string

SpinnerFrame returns the spinner character for the given tick index.

Types

This section is empty.

Jump to

Keyboard shortcuts

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