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.
Click to show internal directories.
Click to hide internal directories.