Skip to main content

Module render

Module render 

Source

Modules§

alt_screen
cell
plain
qr
Render a URL as a terminal-friendly QR code for the OAuth login flow (/login, /codingplan).
retained
screen
theme
worker

Structs§

DiffEntry
One line in a diff batch. added = true renders as +, false as -.
MenuPayload
Slash-command palette payload: filtered entries + which one is selected.
StatusLine
“model · cwd · ctx_used / ctx_window” chrome. Visible in both Idle and Streaming phases so the user always sees what provider is active and how much of the context window is currently in use. Cumulative session token totals are NOT shown here — they’re per-session and don’t tell the user whether the next turn is at risk of overflow. ctx_used answers “what does the model see right now”; ctx_window is the cap. Together they answer “how close are we to compaction”.
ToolGroupChild
One child entry inside a UiLine::ToolGroupRender payload. call_id is the model-supplied tool-call id; text is the display string the renderer initially prints (e.g. ↳ Read File foo.rs). Subsequent ToolGroupChildUpdate events with the same call_id rewrite this row in place (e.g. to ↳ ✓ Read File foo.rs).

Enums§

HintSeverity
Persistent status line drawn directly below the input box — CC-style Severity classification for the right-aligned status hint. Warning → Role::Error (red, e.g. “no provider”, “model retired”). Info → Role::Muted (dim, e.g. “new version available”, drift notice).
MenuKind
Visual style for the menu popup. Drives whether the renderer prefixes each row with / (slash-command palette) or + (file/dir mention), and which marker indicates the selected row.
UiLine
Semantic line to render. Renderer implementations translate this to bytes.

Traits§

Renderer

Functions§

fmt_dur
Convert a Duration to a short label like “1.2s” or “340ms”.