Bro: the syntax-highlighting pager and viewer

Bro is the display dog: its purview is rendering and it owns no repo data — its state is just an in-memory view stack. It renders syntax-highlighted code, Spot results, and Graf diffs in an interactive TUI pager. The goal is one viewer for every dog's output, driven by URIs. The method: take URIs as arguments or TLV hunks on stdin (pipe mode), color text from tok32 tags, keep a 32-deep view stack, and expose a :/# GURI prompt so any position is a re-openable URI.

API

Bro follows the Dog three-call contract; above it sit the run loops, the tokenizer, and the SGR mouse helpers.

CLI

bro [URI...] views files, directories, or piped hunks; spot and graf fork it automatically, so it is rarely invoked by hand.

The URI prompt

The : (or #) prompt accepts GURI syntax, and the fragment picks the search type; Tab completes identifiers from the current view.

Navigation and status

Keys cover line/page/hunk motion and the view stack; the status bar shows a live, re-typeable URI of the current position.