Expand description
TUI rendering for Pacsea.
This module renders the full terminal user interface using ratatui.
The main content (below the one-row updates bar) is split vertically into three bands
whose order is configurable (main_pane_order in settings.conf):
- Results — search matches list (title row + list), selection centering when possible
- Middle — three columns: Recent (left), Search input (center), Install list (right)
- Package info — package details or news body, URL affordances, contextual keybind footer
Default order is results → middle → package info. Row min/max limits apply to each role, not to a fixed screen position, so limits move with the pane when reordered.
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§
- cycle_
pkgbuild_ view_ section - What: Advance the PKGBUILD viewer to the next section (body,
ShellCheck,Namcap) and align scroll. - ui
- What: Render a full frame of the Pacsea TUI.