tui-catalogue

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

tui-catalogue renders a two-column showcase of toolkit widgets to stdout as an ANSI stream. It is the tui analogue of svg/cmd/gallery-render — instead of writing SVG+PNG snapshots per widget, it composes a compact selection of widgets side-by- side into a cell-grid frame the size of the current terminal (or caller-supplied --cols/--rows).

Run with:

go run . | cat            # honours $COLUMNS / $LINES if set
COLUMNS=100 LINES=32 go run .
go run . --cols=120 --rows=40 --theme=dark

Distinct from cmd/tui-snapshot which showcases the tiny painter.Widget prototype set (Button, Label, ProgressBar). This one uses tui.RenderToolkit to render the real toolkit widget catalogue against the cell backend — same widgets a wasm gallery or a native window would show, sized down to a terminal frame.

Jump to

Keyboard shortcuts

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