glyphs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package glyphs provides Unicode glyphs for the TUI interface. Based on glyphs from github.com/maaslalani/glyphs

Index

Constants

View Source
const (
	// Basic shapes
	CircleFilled = "●"
	CircleEmpty  = "○"
	BulletFilled = "•"
	BulletEmpty  = "◦"

	// Checkmarks and crosses
	Checkmark = "✔"
	Crossmark = "✕"

	// Arrows
	ArrowUp    = "↑"
	ArrowRight = "→"
	ArrowDown  = "↓"
	ArrowLeft  = "←"
	Triangle   = "▶"

	// Progress and loading
	Ellipsis         = "⋯"
	VerticalEllipsis = "⋮"

	// Stars and special
	StarFilled = "★"
	StarEmpty  = "☆"
	Star       = "✢"
	Diamond    = "❖"
	Sparkle    = "✦"

	// Symbols
	Lightning = "ϟ"
	Flag      = "⚐"
	Sun       = "☼"
	Moon      = "☾"
	Point     = "☞"

	// Lines and bars
	HorizontalLines = "☰"
)

Status and progress glyphs

Variables

View Source
var (
	StatusPending    = Status{CircleEmpty, "pending"}
	StatusRunning    = Status{CircleFilled, "running"}
	StatusComplete   = Status{Checkmark, "complete"}
	StatusError      = Status{Crossmark, "error"}
	StatusProcessing = Status{BulletFilled, "processing"}
)

Predefined status types

Functions

func BlueCircle

func BlueCircle() string

func GreenCheckmark

func GreenCheckmark() string

Styled glyph functions with colors and bold text

func OrangeLightning

func OrangeLightning() string

func OrangeTriangle

func OrangeTriangle() string

func RedCrossmark

func RedCrossmark() string

func YellowStar

func YellowStar() string

Types

type Status

type Status struct {
	Glyph string
	Name  string
}

Status represents different status states

Jump to

Keyboard shortcuts

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