TerminalBlock

Command output that streams line by line and ends with an exit status.

Install it:

npx shadcn add @ambientui/terminal-block

Live

pnpm vitest run composer0s

Behavior

  • ·Output is quoted verbatim: monospaced, unwrapped, horizontally scrollable. Never reflowed to fit.
  • ·The cursor while a run is live earns its place — it is the difference between "still going" and "produced nothing".
  • ·The exit code replaces the cursor when the run ends, colored by the status pair.
  • ·tone="ink" presents a run as an artifact; "paper" keeps it on the surface it lives in, which is right inside a conversation.

When to use

  • ·Any command the assistant ran on the user's behalf.

When not to

  • ·For code the assistant wrote — that is CodeRunner, where the output belongs to a snippet.
  • ·For long logs; link to them rather than pasting a thousand lines into a conversation.