Documentation
¶
Index ¶
- Constants
- func AnimationFrameDelayMS() int
- func AnimationFrames(bannerColor color.Color, useNativeColor bool) ([]string, error)
- func CanRenderFrameWidth(terminal TerminalCapabilities) bool
- func NewRoarCmd() *cobra.Command
- func RenderAnimation(ctx context.Context, in io.Reader, out io.Writer, loops int, ...) error
- func RenderFallbackClimber(out io.Writer, terminal TerminalCapabilities, bannerColor color.Color) (bool, error)
- func RenderStaticFrame(out io.Writer, bannerColor color.Color, useNativeColor bool) error
- func ShouldRenderAnimation(noAnimate bool, terminal TerminalCapabilities) bool
- func ShouldUseNativeAnimationColor(value string, terminal TerminalCapabilities) bool
- type Placement
- type TerminalCapabilities
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 CanRenderFrameWidth ¶
func CanRenderFrameWidth(terminal TerminalCapabilities) bool
func NewRoarCmd ¶
func RenderAnimation ¶
func RenderFallbackClimber ¶
func RenderStaticFrame ¶
func ShouldRenderAnimation ¶
func ShouldRenderAnimation(noAnimate bool, terminal TerminalCapabilities) bool
func ShouldUseNativeAnimationColor ¶
func ShouldUseNativeAnimationColor(value string, terminal TerminalCapabilities) bool
Types ¶
type TerminalCapabilities ¶
type TerminalCapabilities = terminalCapabilities
func DetectTerminalData ¶
func DetectTerminalData(out io.Writer) TerminalCapabilities
func NewTerminalCapabilities ¶
func NewTerminalCapabilities(width, height int, isTTY bool) TerminalCapabilities
Click to show internal directories.
Click to hide internal directories.