moo.shell.window

Persistent windowed display mode for rich SSH sessions.

Provides a full-screen prompt_toolkit layout with three stacked regions:

  1. a fixed, cursor-addressable top region (a status bar / ASCII map),

  2. a scrolling output region showing normal game/tell output,

  3. a single-line input region that feeds the usual command pipeline.

The driver (moo/shell/prompt.py) owns the queue, the input bridge, and the output rerouting; this module only models the screen state and builds the Application. It mirrors the role editor.py / paginator.py play for their TUIs.

Functions

build_window_app(state, on_accept[, style])

Build the full-screen windowed-display Application.

render_markup_to_ansi(markup[, quiet])

Render a Rich-markup string to an ANSI string.

Classes

WindowState([height, title, quiet])

Mutable screen state shared between the driver and the Application.