Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
filters
Package filters is a two-filterable-pane screen — the shape that exposes how focus behaves when a component has more than one place to type.
|
Package filters is a two-filterable-pane screen — the shape that exposes how focus behaves when a component has more than one place to type. |
|
focus
Package focus demonstrates a screen with multiple components sharing one keyboard, using pkg/focus to decide which of them has it.
|
Package focus demonstrates a screen with multiple components sharing one keyboard, using pkg/focus to decide which of them has it. |
|
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. |
|
mouse
Package mouse demonstrates the click, double-click, wheel and drag affordances tuilib components expose when the app shell enables mouse input (app.Options.Mouse = app.MouseClick).
|
Package mouse demonstrates the click, double-click, wheel and drag affordances tuilib components expose when the app shell enables mouse input (app.Options.Mouse = app.MouseClick). |
|
output
Package output demonstrates the app-wide output console: everything the app has said, kept, and readable long after the statusbar wiped it.
|
Package output demonstrates the app-wide output console: everything the app has said, kept, and readable long after the statusbar wiped it. |
|
prescreen
Package prescreen demonstrates pushing a screen *in front of* another one on first activation, and taking a result back when it pops — the shape behind "log in before you can use this", "pick a workspace first", or "re-authenticate, that token expired".
|
Package prescreen demonstrates pushing a screen *in front of* another one on first activation, and taking a result back when it pops — the shape behind "log in before you can use this", "pick a workspace first", or "re-authenticate, that token expired". |
|
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
|
|
|
actions
Package actions demonstrates pkg/action end to end: a screen declares what can be done to the current selection, and the app shell does everything else.
|
Package actions demonstrates pkg/action end to end: a screen declares what can be done to the current selection, and the app shell does everything else. |
|
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. |
|
remote
Package remote demonstrates the full windowed-source loop: pkg/source coordinating a sparse pkg/table over a simulated paged HTTP API.
|
Package remote demonstrates the full windowed-source loop: pkg/source coordinating a sparse pkg/table over a simulated paged HTTP API. |
|
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. |
|
textview
Package textview demonstrates pkg/textview: a read-only viewer for static text content with search, wrap toggle, and vim-style navigation.
|
Package textview demonstrates pkg/textview: a read-only viewer for static text content with search, wrap toggle, and vim-style navigation. |
|
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.