roar

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NativeColorValue = nativeColorValue
	PlacementTopLeft = placementTopLeft
)
View Source
const (
	Verb = verbs.Roar
)

Variables

This section is empty.

Functions

func AnimationFrameDelayMS

func AnimationFrameDelayMS() int

func AnimationFrames

func AnimationFrames(bannerColor color.Color, useNativeColor bool) ([]string, error)

func CanRenderFrameWidth

func CanRenderFrameWidth(terminal TerminalCapabilities) bool

func NewRoarCmd

func NewRoarCmd() *cobra.Command

func RenderAnimation

func RenderAnimation(
	ctx context.Context,
	in io.Reader,
	out io.Writer,
	loops int,
	terminal TerminalCapabilities,
	placement Placement,
	bannerColor color.Color,
	useNativeColor bool,
) error

func RenderFallbackClimber

func RenderFallbackClimber(out io.Writer, terminal TerminalCapabilities, bannerColor color.Color) (bool, error)

func RenderStaticFrame

func RenderStaticFrame(out io.Writer, bannerColor color.Color, useNativeColor bool) error

func ShouldRenderAnimation

func ShouldRenderAnimation(noAnimate bool, terminal TerminalCapabilities) bool

func ShouldUseNativeAnimationColor

func ShouldUseNativeAnimationColor(value string, terminal TerminalCapabilities) bool

Types

type Placement

type Placement = roarPlacement

type TerminalCapabilities

type TerminalCapabilities = terminalCapabilities

func DetectTerminalData

func DetectTerminalData(out io.Writer) TerminalCapabilities

func NewTerminalCapabilities

func NewTerminalCapabilities(width, height int, isTTY bool) TerminalCapabilities

Jump to

Keyboard shortcuts

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