Skip to content

otto-hud: the band in text on the terminal - #1

Merged
manuacl merged 11 commits into
mainfrom
terminal-band
Oct 6, 2026
Merged

manuacl merged 11 commits into
mainfrom
terminal-band

Conversation

@manuacl

@manuacl manuacl commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

The terminal showed nothing; it now gets the same line as the desktop, in text, without Otto or tooltips (a one-row band would cut a card to its first line).

  • Forecast: a glyph per sky (☀ ☁ ☂ ☇ ↯, Token Weather's own) in its tint, then the share of the context used.
  • Prompts: 8 bars in eighths of a cell, each in the tint of the forecast it left, the latest bright; the last turn's change beside them.
  • 5h / 7d: full colored cells, eighth-precise: solid up to the share used, faded on to where the pace ends, a grey track. The cell where the share used ends takes the next color behind its eighths, so no gap shows.
  • Width: text cannot flex, so a gauge's grow is a function of its bar's cells there, and drawLine shares the band's spare cells among the gauges; the band is drawn again at each width, so they follow the terminal's.

Tests: the terminal test checks the text line, no Svg or cards, the partial cell's background, and that the line fills the given width, 16 more columns going to the gauges. bash scripts/check.sh passes (24 tests). Docs: README, plugin.json description, NOTICE, CLAUDE.md.

Docs: CLAUDE.md now says how the desktop places hover cards (learned while trying to anchor the gauges' tooltips right, which a mod cannot do; that attempt is reverted).

Also, on the desktop: where the time stands, the gauges have a 2 px mark in Otto's blue (OTTO_COLOR, exported by otto.mjs) that goes 3 px past the bar above and below, instead of a see-through notch. A test checks the mark and the drawing's height.

And the gauges' tooltips have legends, small drawings in one box so the texts line up: a square of the gauge's tone before the share used, the gauge's own blue time mark before the time elapsed, a square of the faded tone before the pace. (The desktop drops an Svg with an empty alt, so each has its shape's glyph; a test checks no Svg has an empty alt.)

And the forecast and its percent now follow the context after each response, as the status line does: session.measure brings the figures (no call, no token), laid over the last reading as live; not a reading, so the prompts' bars still move only at a turn's end. A test raises a measure mid-turn.

The terminal had nothing; it now gets the same line in text, without Otto or tooltips: a glyph per forecast in its tint, the prompts' bars in eighths of a cell, and the limits' gauges in full colored cells, eighth-precise, sharing the band's width and drawn again when the terminal is resized.
@manuacl manuacl added the bump:patch On merge: patch version of the changed plugins label Oct 6, 2026
@manuacl
manuacl merged commit d5de8de into main Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:patch On merge: patch version of the changed plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant