// Command preview prints a single static TUI frame for screenshotting. // Usage: preview [cols] [rows] package main import ( "fmt" "os" "strconv" "github.com/correx/tui-go/internal/app" ) func main() { // lipgloss v2 renders full truecolor ANSI by default (color downsampling now // lives in the terminal writer, not a global profile), which is exactly what a // static screenshot frame wants — so no color-profile setup is needed. kind := "idle" if len(os.Args) > 1 { kind = os.Args[1] } cols, rows := 140, 36 if len(os.Args) > 2 { cols, _ = strconv.Atoi(os.Args[2]) } if len(os.Args) > 3 { rows, _ = strconv.Atoi(os.Args[3]) } fmt.Print(app.PreviewFrame(kind, cols, rows)) }