# `SuperPi.Event.Renderer.TUI`
[🔗](https://github.com/oleksandr/super-pi-beam/blob/v0.1.0/lib/super_pi/event/renderer/tui.ex#L1)

Renders events for a terminal. The output is tagged, so the terminal code decides what to print:

| Item | From | Meaning |
|---|---|---|
| `{:text, binary}` | `text_delta` | Answer text, written as it comes. |
| `{:thinking, binary}` | `thinking_delta` | Reasoning text. |
| `{:line, binary}` | tool, notice and compaction events | A status line. |
| `{:ask, wire}` | `ui_request` of kind `questionnaire` | A question for the user. |
| `{:permission, wire}` | `permission_request` | A tool call that waits for approval. |
| `{:done, :ok \| :cancelled \| {:error, reason}}` | `turn_*` | The turn ended. |

Stateless: `init/1` returns `nil`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
