Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
focus
Package focus demonstrates a screen with multiple components and tab/shift-tab focus cycling.
|
Package focus demonstrates a screen with multiple components and tab/shift-tab focus cycling. |
|
gate
Package gate demonstrates a one-shot pre-screen flow: a "gated" root screen that pushes a login form on first activation, receives the credentials when the form pops, and re-pushes the form on logout.
|
Package gate demonstrates a one-shot pre-screen flow: a "gated" root screen that pushes a login form on first activation, receives the credentials when the form pops, and re-pushes the form on logout. |
|
layouts
Package layouts demonstrates that pkg/layout can describe arbitrary compositions without the caller doing "m.h-2" math.
|
Package layouts demonstrates that pkg/layout can describe arbitrary compositions without the caller doing "m.h-2" math. |
|
replace
Package replace demonstrates screen.Replace — atomic top-of-stack swap.
|
Package replace demonstrates screen.Replace — atomic top-of-stack swap. |
|
stack
Package stack demonstrates a screen stack with data flowing in two directions:
|
Package stack demonstrates a screen stack with data flowing in two directions: |
|
status
Package status demonstrates how a screen sends transient feedback to the app's statusbar.
|
Package status demonstrates how a screen sends transient feedback to the app's statusbar. |
|
tabs
Package tabs demonstrates pkg/tab as the layout primitive of a host screen.
|
Package tabs demonstrates pkg/tab as the layout primitive of a host screen. |
|
data
|
|
|
alert
Package alert demonstrates pkg/alert in the standard modal pattern, alongside the lighter app.Info / app.Error statusbar messages.
|
Package alert demonstrates pkg/alert in the standard modal pattern, alongside the lighter app.Info / app.Error statusbar messages. |
|
confirm
Package confirm demonstrates pkg/confirm in the standard modal pattern: a list of files, press d to delete; a confirm dialog overlays the list via layout.ZStack(base, layout.Center(...)).
|
Package confirm demonstrates pkg/confirm in the standard modal pattern: a list of files, press d to delete; a confirm dialog overlays the list via layout.ZStack(base, layout.Center(...)). |
|
drilldown
Package drilldown demonstrates a master-detail screen with async fetches at both levels, plus a third level via push:
|
Package drilldown demonstrates a master-detail screen with async fetches at both levels, plus a third level via push: |
|
form
Package form demonstrates pkg/form: a vertical form with Text, Select, and Confirm fields.
|
Package form demonstrates pkg/form: a vertical form with Text, Select, and Confirm fields. |
|
inspector
Package inspector demonstrates pkg/inspector — a two-column label/value viewer with expand/collapse for nested structured records.
|
Package inspector demonstrates pkg/inspector — a two-column label/value viewer with expand/collapse for nested structured records. |
|
list
Package list demonstrates a filterable list.Model as a single-screen app.
|
Package list demonstrates a filterable list.Model as a single-screen app. |
|
loading
Package loading demonstrates pkg/pane's loading state across a list, a logview, and a tree.
|
Package loading demonstrates pkg/pane's loading state across a list, a logview, and a tree. |
|
logview
Package logview demonstrates pkg/logview as a single-screen app: a synthetic log stream you can search ("/"), jump between matches (n/N), scroll (pgup/pgdn/arrows), and pin (G to follow, g to top).
|
Package logview demonstrates pkg/logview as a single-screen app: a synthetic log stream you can search ("/"), jump between matches (n/N), scroll (pgup/pgdn/arrows), and pin (G to follow, g to top). |
|
metrics
Package metrics demonstrates pkg/metrics inline primitives — Badge, Ratio, Bar, Spark — composed into a polled deployments table.
|
Package metrics demonstrates pkg/metrics inline primitives — Badge, Ratio, Bar, Spark — composed into a polled deployments table. |
|
poll
Package poll demonstrates pkg/poll driving auto-refresh of a list, with keyed items so the user's cursor survives every refresh even as the underlying set churns.
|
Package poll demonstrates pkg/poll driving auto-refresh of a list, with keyed items so the user's cursor survives every refresh even as the underlying set churns. |
|
polltable
Package polltable demonstrates pkg/poll driving auto-refresh of a table.Model, with SetKeyedRows pinning the cursor to the same row by Key across every refresh.
|
Package polltable demonstrates pkg/poll driving auto-refresh of a table.Model, with SetKeyedRows pinning the cursor to the same row by Key across every refresh. |
|
runlog
Package runlog demonstrates streaming a subprocess's stdout/stderr into pkg/logview, with tab-cycling focus between a command picker on the left and the logview on the right.
|
Package runlog demonstrates streaming a subprocess's stdout/stderr into pkg/logview, with tab-cycling focus between a command picker on the left and the logview on the right. |
|
runner
Package runner demonstrates pkg/runner: pick an interactive subprocess from a list, hand the terminal to it, and return to the TUI on exit.
|
Package runner demonstrates pkg/runner: pick an interactive subprocess from a list, hand the terminal to it, and return to the TUI on exit. |
|
table
Package table demonstrates pkg/table — a filterable cursor-driven tabular view with a sticky header.
|
Package table demonstrates pkg/table — a filterable cursor-driven tabular view with a sticky header. |
|
tree
Package tree demonstrates pkg/tree as a single-screen app: a synthetic project layout you can expand/collapse, search ("/"), and filter ("\") down to matching subtrees.
|
Package tree demonstrates pkg/tree as a single-screen app: a synthetic project layout you can expand/collapse, search ("/"), and filter ("\") down to matching subtrees. |
|
Launcher: the single entry point for tuilib examples.
|
Launcher: the single entry point for tuilib examples. |
|
pane
|
|
|
showcase
Package showcase demonstrates pane border styles, title positions, and slot-bracket variants in a single screen.
|
Package showcase demonstrates pane border styles, title positions, and slot-bracket variants in a single screen. |
|
Package themecheck is an interactive theme picker.
|
Package themecheck is an interactive theme picker. |
Click to show internal directories.
Click to hide internal directories.