# TUI

> Build terminal screens for session events, replay, restore decisions, runtime teardown, widgets, and rendering styles.

- Path: `Modules > TUI - Terminal UI`
- Human: https://looprig.com/docs/modules/tui
- Machine index: https://looprig.com/llms.txt

## Repository

| Field | Value |
| --- | --- |
| Repository | `github.com/looprig/tui` |
| Version | `v0.16.1` |
| GitHub | [looprig/tui](https://github.com/looprig/tui) |

## Description

Build terminal screens for session events, replay, restore decisions, runtime teardown, widgets, and rendering styles.

## Where it fits

TUI is useful on its own when a terminal application needs reusable session views, event rendering, input, completion, restore decisions, and teardown coordination. Within Looprig, it presents [Harness](/docs/modules/harness.md) sessions and [Inference](/docs/modules/inference.md) content in a ready terminal interface. TUI owns presentation and interaction; the runtime remains the source of session state.

## Dependencies

- [Core](/docs/modules/core.md)
- [Harness](/docs/modules/harness.md)
- [Inference](/docs/modules/inference.md)

## Dependents

None.
