Examples
Examples
Small, runnable recipes — real programs showing a single runtime feature end to end, with full source you can copy.
16 entries

Multiple views
Switch between screens — a task list into a download progress view.

Shopping list
The Bubble Tea shopping-list tutorial, ported to Dart.

Real-time updates
Feed background async work back into the UI as messages.

Program.send()
Inject messages into a running program from the outside.

Sequenced commands
Run commands strictly one after another with sequence().

Prevent quit
Intercept quit and ask for confirmation before exiting.

Focus & blur
React to the terminal gaining or losing focus.

Print key
Inspect the decoded name of every key press.

Window size
Read terminal dimensions and respond to resizes.

Fullscreen
A full-screen alt-screen app with a countdown.

Alt-screen toggle
Switch between the primary and alternate screen at runtime.

Set window title
Set the terminal window/tab title from your view.

Cursor style
Configure the real terminal cursor's shape and blink.

Piped input
Seed a program from piped stdin.

Vanish
A single keystroke, then a clean exit with no trace.

Chained prompts
Run promptSelect → promptConfirm → promptInput in sequence.