Module ui

Module ui 

Source
Expand description

TUI rendering for Pacsea.

This module renders the full terminal user interface using ratatui. The layout is split vertically into three regions:

  1. Results list (top): shows search matches and keeps the current selection centered when possible
  2. Middle row (three columns): Recent (left), Search input (center), and Install list (right), each styled based on focus
  3. Details pane (bottom): rich package information with a clickable URL and a contextual help footer displaying keybindings

The renderer also draws modal overlays for alerts and install confirmation. It updates app.url_button_rect to make the URL clickable when available.

Modules§

helpers
UI helper utilities for formatting and pane-specific behaviors.

Functions§

ui
What: Render a full frame of the Pacsea TUI.