golazy.dev
–
golazy.dev
/
lazytui
Index
|
Files
|
Directories
package lazytui ¶
import "golazy.dev/lazytui"
Variables ¶
var GoLazyPalette ¶
GoLazyPalette is the terminal counterpart of the public site's brand palette.
var GoLazyPalette = Palette{
Primary: Hex("#00ADD8"),
Secondary: Hex("#00A29C"),
Accent: Hex("#FDDD00"),
Success: Hex("#00A29C"),
Warning: Hex("#FDDD00"),
Error: Hex("#CE3262"),
}
Types ¶
type Color ¶
Color is a terminal color stored as an RGB value.
type Color struct {
R uint8
G uint8
B uint8
}
func Hex ¶
Hex parses a CSS-style six-digit hexadecimal color and panics when it is invalid. It is intended for package-level palette declarations.
func Hex(value string) Color
func (color Color) IsZero ¶
func (color Color) IsZero() bool
type Palette ¶
Palette contains semantic colors shared by terminal-facing GoLazy packages. Text and terminal background colors are deliberately inherited from the terminal.
type Palette struct {
Primary Color
Secondary Color
Accent Color
Success Color
Warning Color
Error Color
}
func (palette Palette) IsZero ¶
func (palette Palette) IsZero() bool
Directories ¶
| Path | Synopsis |
|---|---|
| lazytui/encoding/ansi | Package ansi encodes and decodes ANSI and VT terminal byte streams. |
| lazytui/encoding/ansi/codes | Package codes defines ANSI, ECMA-48, and common terminal extension codes. |
| lazytui/encoding/tty | Package tty encodes terminal-control requests and applies them to terminal devices. |
| lazytui/examples/twoshells | |
| lazytui/lazycli | Package lazycli provides a small reflection-driven command router. |
| lazytui/progress | Package progress runs named terminal tasks with compact status output. |
| lazytui/pty | Package pty starts commands behind pseudo terminals. |
| lazytui/window | Package window defines terminal window geometry helpers. |
Package lazytui groups terminal UI helpers for GoLazy command-line tools.
The root package is intentionally only a discovery point. Concrete behavior lives in subpackages: progress owns multi-step command status UIs, pty wraps pseudo-terminal command execution, window describes terminal dimensions, and encoding packages parse or emit terminal byte streams.
GoLazy's lazy command uses these packages for visible setup, build, migration, and foreground-process workflows. Applications normally do not import lazytui unless they are building their own terminal tooling.