control: screen renderer (CLI views stage 1) !552

merged merged by cmc on 2026-10-02 03:33 UTC · krz/gitbay:cli-views-1 into main

Discussion

cmc

Stage 1 of #316. Closes #317.

  • screen model and renderer (internal/control/screen.go): header fields, body, counted sections with row bodies, action legend; emitView / emitPageView.
  • Tables at a terminal: header row only when a column is a number or size; refs dim, not cyan; cGlyph, cYou, cMeta cells.
  • Next page <command> on stderr replaces more:.
  • CLI sends here=<owner/name> in --term inside a clone; suggested commands drop it. Older instances ignore the option.
  • Test helpers: checkActions (legend commands resolve with declared flags), pinPlain (piped output goldens).
  • Spec and plan: docs/specs/2026-10-01-cli-views-design.md, docs/plans/2026-10-01-cli-views.md.

No command is drawn as a screen yet; that is #318. Piped and --json output unchanged.