Documentation
¶
Overview ¶
tui-snapshot renders a sample widget tree to stdout as an ANSI stream. It is the tui analogue of painter/cmd/tui-demo — the same three-widget layout, sized to the current terminal (or a caller-supplied --cols/--rows), so pointing a terminal at its output shows the tui package end-to-end without any raw-mode or event-loop scaffolding.
Run with:
go run . | cat # honours $COLUMNS / $LINES if set COLUMNS=80 LINES=24 go run . go run . --cols=100 --rows=20 --theme=dark
Click to show internal directories.
Click to hide internal directories.