Directories
¶
| Path | Synopsis |
|---|---|
|
Package demoapi is a fake API to build TUIs against: applications that can be listed, filtered, paged and sorted, and jobs that run against them and finish after real time has passed.
|
Package demoapi is a fake API to build TUIs against: applications that can be listed, filtered, paged and sorted, and jobs that run against them and finish after real time has passed. |
|
cmd/demoapi
command
Command demoapi runs the demo API on loopback.
|
Command demoapi runs the demo API on loopback. |
|
examples
|
|
|
appearance
Package appearance is the look showcase: palettes, surfaces, glyphs and the components whose subject is how they are drawn, so a change that breaks an older look shows up where you can see it.
|
Package appearance is the look showcase: palettes, surfaces, glyphs and the components whose subject is how they are drawn, so a change that breaks an older look shows up where you can see it. |
|
appearance/form
Package form is the pkg/form showcase: a two-step sign-up wizard holding every field kind on one card.
|
Package form is the pkg/form showcase: a two-step sign-up wizard holding every field kind on one card. |
|
appearance/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. |
|
appearance/look
Package look is the live look picker: moving a cursor redraws the whole app in that palette (app.SetPalette) or that surface (app.SetSurface) — line border, filled card, header band, drop shadow — and the glyph picker swaps the marks this screen draws with.
|
Package look is the live look picker: moving a cursor redraws the whole app in that palette (app.SetPalette) or that surface (app.SetSurface) — line border, filled card, header band, drop shadow — and the glyph picker swaps the marks this screen draws with. |
|
appearance/pane
Package pane demonstrates pane border styles, title positions, and slot-bracket variants in a single screen.
|
Package pane demonstrates pane border styles, title positions, and slot-bracket variants in a single screen. |
|
appearance/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. |
|
launcher
command
Launcher: the single entry point for tuilib's examples.
|
Launcher: the single entry point for tuilib's examples. |
|
liveops
Package liveops is the live-data showcase: everything that changes while you watch, on one screen, so a change that breaks an older feature shows up where you can see it.
|
Package liveops is the live-data showcase: everything that changes while you watch, on one screen, so a change that breaks an older feature shows up where you can see it. |
|
navigation
Package navigation is the navigation showcase: how an app moves between screens, from one home, so a change that breaks an older feature shows up where you can see it.
|
Package navigation is the navigation showcase: how an app moves between screens, from one home, so a change that breaks an older feature shows up where you can see it. |
|
navigation/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: |
|
navigation/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". |
|
navigation/stack
Package stack demonstrates a screen stack: how screens are pushed and popped, how data flows between them, and how a screen replaces itself.
|
Package stack demonstrates a screen stack: how screens are pushed and popped, how data flows between them, and how a screen replaces itself. |
|
navigation/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. |
|
processes
Package processes is the subprocess showcase: running commands, streaming their output, handing the terminal over, and the app-wide console that keeps everything said — on one screen, so a change that breaks an older feature shows up where you can see it.
|
Package processes is the subprocess showcase: running commands, streaming their output, handing the terminal over, and the app-wide console that keeps everything said — on one screen, so a change that breaks an older feature shows up where you can see it. |
|
quickstart
command
Command quickstart is the program the documentation's quick start builds: a filterable list of cities that opens a detail screen for the one you pick, running under the app shell.
|
Command quickstart is the program the documentation's quick start builds: a filterable list of cities that opens a detail screen for the one you pick, running under the app shell. |
|
remotedata
Package remotedata is the remote-data showcase: data too large for one request, one tab per shape (rule 34), each read from demoapi over HTTP the way the real API is read.
|
Package remotedata is the remote-data showcase: data too large for one request, one tab per shape (rule 34), each read from demoapi over HTTP the way the real API is read. |
|
remotedata/anchored
Package anchored demonstrates pkg/eventlog over Anchored data: a log index read the way Elasticsearch (behind ECK) is read past its first 10,000 hits — with search_after, over HTTP, against demoapi's POST /logs-app/_search.
|
Package anchored demonstrates pkg/eventlog over Anchored data: a log index read the way Elasticsearch (behind ECK) is read past its first 10,000 hits — with search_after, over HTTP, against demoapi's POST /logs-app/_search. |
|
remotedata/events
Package events demonstrates pkg/eventlog over Seekable, Growing data: an AWX job's events, read over HTTP from demoapi's AWX-shaped endpoints (/api/v2/jobs/{id}/job_events/).
|
Package events demonstrates pkg/eventlog over Seekable, Growing data: an AWX job's events, read over HTTP from demoapi's AWX-shaped endpoints (/api/v2/jobs/{id}/job_events/). |
|
remotedata/podlogs
Package podlogs demonstrates Streamed data: a pod's log, read the way the Kubernetes API offers it — a tail, then a follow, and nothing else.
|
Package podlogs demonstrates Streamed data: a pod's log, read the way the Kubernetes API offers it — a tail, then a follow, and nothing else. |
|
remotedata/records
Package records demonstrates a table over a real paged HTTP API, bound with pkg/remote: the screen writes the HTTP call and nothing else.
|
Package records demonstrates a table over a real paged HTTP API, bound with pkg/remote: the screen writes the HTTP call and nothing else. |
|
workbench
Package workbench is the local-data showcase: every row component on one screen, cooperating, so a change that breaks an older feature shows up where you can see it.
|
Package workbench is the local-data showcase: every row component on one screen, cooperating, so a change that breaks an older feature shows up where you can see it. |
|
internal
|
|
|
changelog
Package changelog reads and rotates CHANGELOG.md, the record a consumer upgrades from.
|
Package changelog reads and rotates CHANGELOG.md, the record a consumer upgrades from. |
|
changelog/cmd/changelog
command
Command changelog is the release job's interface to CHANGELOG.md.
|
Command changelog is the release job's interface to CHANGELOG.md. |
|
cmdtest
Package cmdtest runs tea commands in tests without waiting on timers.
|
Package cmdtest runs tea commands in tests without waiting on timers. |
|
grouping
Package grouping lays items out under group headers for the two menus that draw them, pkg/menu and pkg/action's Menu, so both follow one set of rules:
|
Package grouping lays items out under group headers for the two menus that draw them, pkg/menu and pkg/action's Menu, so both follow one set of rules: |
|
remoteview
Package remoteview is the machinery pkg/table and pkg/eventlog share for showing data that lives behind a slow remote source: which query the items on screen answer, whether that is still the one the user committed, what failed, what the border says about it, and — in Range — which items are resident at all.
|
Package remoteview is the machinery pkg/table and pkg/eventlog share for showing data that lives behind a slow remote source: which query the items on screen answer, whether that is still the one the user committed, what failed, what the border says about it, and — in Range — which items are resident at all. |
|
tick
Package tick is the timer every tuilib component schedules through, and the seam tests use to stop waiting on real time.
|
Package tick is the timer every tuilib component schedules through, and the seam tests use to stop waiting on real time. |
|
pkg
|
|
|
action
Package action is a screen's verbs: the named things a user can do to whatever is currently selected, declared as data rather than wired up as keypresses.
|
Package action is a screen's verbs: the named things a user can do to whatever is currently selected, declared as data rather than wired up as keypresses. |
|
activity
Package activity is per-row in-flight state: the spinner and status label a table cell, list row or tree node shows while work against that specific row is running.
|
Package activity is per-row in-flight state: the spinner and status label a table cell, list row or tree node shows while work against that specific row is running. |
|
alert
Package alert provides a modal acknowledgement dialog component.
|
Package alert provides a modal acknowledgement dialog component. |
|
ansi
Package ansi holds small, dependency-free ANSI helpers for the corners of the library where lipgloss's full \x1b[0m reset is the wrong tool — most notably cells inside a styled row (e.g.
|
Package ansi holds small, dependency-free ANSI helpers for the corners of the library where lipgloss's full \x1b[0m reset is the wrong tool — most notably cells inside a styled row (e.g. |
|
app
Package app is the standard TUI shell: a breadcrumb header, a flex body that renders the active screen's layout, and a statusbar footer.
|
Package app is the standard TUI shell: a breadcrumb header, a flex body that renders the active screen's layout, and a statusbar footer. |
|
banner
Package banner draws a title in large block letters with a drop shadow, its faces swept by a colour gradient — the heading of an intro or sign-in screen.
|
Package banner draws a title in large block letters with a drop shadow, its faces swept by a colour gradient — the heading of an intro or sign-in screen. |
|
breadcrumb
Package breadcrumb renders a single-line breadcrumb trail like "Root › Modules › dev" for use as a TUI header bar.
|
Package breadcrumb renders a single-line breadcrumb trail like "Root › Modules › dev" for use as a TUI header bar. |
|
config
Package config carries the user-supplied YAML config that any tuilib component can consult: the starting palette and surface, block-glyph support, the double-click window.
|
Package config carries the user-supplied YAML config that any tuilib component can consult: the starting palette and surface, block-glyph support, the double-click window. |
|
confirm
Package confirm provides a modal yes/no dialog component.
|
Package confirm provides a modal yes/no dialog component. |
|
eventlog
Package eventlog shows Events and Lines read in order from a remote source too large to hold: an AWX job's events, an Elasticsearch index, a Prefect run's logs.
|
Package eventlog shows Events and Lines read in order from a remote source too large to hold: an AWX job's events, an Elasticsearch index, a Prefect run's logs. |
|
filter
Package filter provides a single-line textinput wrapped in a pane — the "press / to search, enter to commit, esc to clear" pattern every TUI eventually needs.
|
Package filter provides a single-line textinput wrapped in a pane — the "press / to search, enter to commit, esc to clear" pattern every TUI eventually needs. |
|
focus
Package focus owns "which component currently has the keyboard" for a screen with more than one interactive component.
|
Package focus owns "which component currently has the keyboard" for a screen with more than one interactive component. |
|
form
Package form is a form drawn as one card: each field a label over its value, a note under it saying what it is for, Submit and Cancel buttons, and a line of the keys that work.
|
Package form is a form drawn as one card: each field a label over its value, a note under it saying what it is for, Submit and Cancel buttons, and a line of the keys that work. |
|
geom
Package geom carries the geometry primitives shared by pkg/layout and the components it places.
|
Package geom carries the geometry primitives shared by pkg/layout and the components it places. |
|
glyph
Package glyph collects the single-character marks tuilib components draw — row cursors, expand arrows, scrollbar thumbs, rules, sort indicators — into one vocabulary so a theme can set them once and every component agrees.
|
Package glyph collects the single-character marks tuilib components draw — row cursors, expand arrows, scrollbar thumbs, rules, sort indicators — into one vocabulary so a theme can set them once and every component agrees. |
|
help
Package help renders key-binding hints in two shapes:
|
Package help renders key-binding hints in two shapes: |
|
input
Package input provides a single-line text input wrapped in a pane — a theme-styled, bordered text field with a title slot on the border.
|
Package input provides a single-line text input wrapped in a pane — a theme-styled, bordered text field with a title slot on the border. |
|
inspector
Package inspector provides a two-column label/value viewer for structured records — pod specs, REST responses, Prefect run details, any "show me the fields of this thing" surface.
|
Package inspector provides a two-column label/value viewer for structured records — pod specs, REST responses, Prefect run details, any "show me the fields of this thing" surface. |
|
layout
Package layout is a tiny declarative engine for composing Bubble Tea view strings.
|
Package layout is a tiny declarative engine for composing Bubble Tea view strings. |
|
list
Package list provides a cursor-driven, optionally filterable list inside a bordered pane.
|
Package list provides a cursor-driven, optionally filterable list inside a bordered pane. |
|
logview
Package logview is a streaming text viewer with incremental search and keyboard navigation, wrapped in a pane.
|
Package logview is a streaming text viewer with incremental search and keyboard navigation, wrapped in a pane. |
|
menu
Package menu is a grouped, filterable list of things to open: the sections of an app, the screens a home page leads to.
|
Package menu is a grouped, filterable list of things to open: the sections of an app, the screens a home page leads to. |
|
metrics
Package metrics renders small inline summaries — status badges, ratios, progress bars, sparklines — sized to fit inside list rows, table cells, or inspector values without breaking outer SGR state.
|
Package metrics renders small inline summaries — status badges, ratios, progress bars, sparklines — sized to fit inside list rows, table cells, or inspector values without breaking outer SGR state. |
|
mouse
Package mouse carries the mouse event tuilib components actually handle, and the click-counting that turns raw presses into single and double clicks.
|
Package mouse carries the mouse event tuilib components actually handle, and the click-counting that turns raw presses into single and double clicks. |
|
output
Package output is the app-wide console: one ring buffer of everything the app has said, and a screen for reading it.
|
Package output is the app-wide console: one ring buffer of everything the app has said, and a screen for reading it. |
|
palette
Package palette holds the colours an app is drawn in, and the built-in palettes: Dark, Nord, Catppuccin, the base16 schemes and the rest.
|
Package palette holds the colours an app is drawn in, and the built-in palettes: Dark, Nord, Catppuccin, the base16 schemes and the rest. |
|
pane
Package pane provides a bordered, titled, scrollable region for Bubble Tea TUIs.
|
Package pane provides a bordered, titled, scrollable region for Bubble Tea TUIs. |
|
poll
Package poll is a thin interval-driven ticker for screens that need to auto-refresh remote state — k8s deployment status, Prefect runs, REST endpoints — without re-implementing the same tea.Tick + generation- counter dance every time.
|
Package poll is a thin interval-driven ticker for screens that need to auto-refresh remote state — k8s deployment status, Prefect runs, REST endpoints — without re-implementing the same tea.Tick + generation- counter dance every time. |
|
query
Package query parses the filter grammar shared by tuilib's filterable components — the "bare substring / key:value column scope / ~regex" syntax pkg/table exposes in its filter bar.
|
Package query parses the filter grammar shared by tuilib's filterable components — the "bare substring / key:value column scope / ~regex" syntax pkg/table exposes in its filter bar. |
|
remote
Package remote binds a component to a remote source, so a screen supplies only what varies between APIs — the fetch — and nothing of the routing between them.
|
Package remote binds a component to a remote source, so a screen supplies only what varies between APIs — the fetch — and nothing of the routing between them. |
|
resume
Package resume keeps a line stream resumable when its source can only be asked for "lines since time T", and T is coarser than the lines.
|
Package resume keeps a line stream resumable when its source can only be asked for "lines since time T", and T is coarser than the lines. |
|
runner
Package runner runs work from inside a Bubble Tea program, in three shapes that differ in what happens to the terminal and to the output.
|
Package runner runs work from inside a Bubble Tea program, in three shapes that differ in what happens to the terminal and to the output. |
|
screen
Package screen defines a richer navigation model for pkg/app.
|
Package screen defines a richer navigation model for pkg/app. |
|
source
Package source coordinates a windowed view over a paged remote source — the bookkeeping between "the user scrolled here" and "ask the server for that range", without ever doing the I/O itself.
|
Package source coordinates a windowed view over a paged remote source — the bookkeeping between "the user scrolled here" and "ask the server for that range", without ever doing the I/O itself. |
|
statusbar
Package statusbar renders a one-line status strip with left/center/right slots, modeled on pug's footer.
|
Package statusbar renders a one-line status strip with left/center/right slots, modeled on pug's footer. |
|
surface
Package surface describes how a component's edge and body are drawn — a line border, a filled card, a header band, a drop shadow — as data, and derives the colours that data needs from a palette.
|
Package surface describes how a component's edge and body are drawn — a line border, a filled card, a header band, a drop shadow — as data, and derives the colours that data needs from a palette. |
|
tab
Package tab provides a tabbed container that hosts multiple screen.Screen bodies inside one parent screen.
|
Package tab provides a tabbed container that hosts multiple screen.Screen bodies inside one parent screen. |
|
table
Package table provides a cursor-driven, optionally filterable tabular view inside a bordered pane.
|
Package table provides a cursor-driven, optionally filterable tabular view inside a bordered pane. |
|
textview
Package textview is a read-only viewer for static text content, wrapped in a pane.
|
Package textview is a read-only viewer for static text content, wrapped in a pane. |
|
theme
Package theme collapses every color used by more than one tuilib component into a single struct.
|
Package theme collapses every color used by more than one tuilib component into a single struct. |
|
toggle
Package toggle provides a yes/no (boolean) selector wrapped in a pane — two labelled buttons rendered side-by-side with the active side highlighted, inside a bordered titled box.
|
Package toggle provides a yes/no (boolean) selector wrapped in a pane — two labelled buttons rendered side-by-side with the active side highlighted, inside a bordered titled box. |
|
tree
Package tree provides a searchable, expand/collapse hierarchical view inside a bordered pane.
|
Package tree provides a searchable, expand/collapse hierarchical view inside a bordered pane. |
Click to show internal directories.
Click to hide internal directories.