Skip to main content

Module bar

Module bar 

Source
Expand description

Ratios drawn as a bar, where there is a terminal to draw on.

One rule, and it is the whole design: decoration follows the painter. The numbers are the contract — 4 of 6 is what a caller reads, greps and parses, and it appears in both modes unchanged. The blocks are chrome, and a pipe gets none of them, so no piped output grows a byte for a person’s benefit and nothing an agent parses changes shape.

This is the same switch colour is on (Context::is_human), for the same reason: an agent pays per token for anything a terminal draws.

Functions§

ratio
▓▓▓▓░░░░░░ 4 of 6, or just 4 of 6.