Skip to content

feat(statusline): colour the statusline by role and choose the bar characters - #534

Merged
Mearman merged 1 commit into
mainfrom
feat/statusline-colours
Oct 19, 2026
Merged

Mearman merged 1 commit into
mainfrom
feat/statusline-colours

Conversation

@Mearman

@Mearman Mearman commented Oct 19, 2026

Copy link
Copy Markdown
Member

Colours and bar characters for the built-in statusline, the shared infrastructure the other element groups paint with.

colours.* colours the statusline by role (context and usage below their warning threshold, warning and usageWarning from bands.warnAt, critical from bands.criticalAt, model, label, and empty for the unused part of a bar), and bar.filled and bar.empty choose the characters a bar is drawn with. A colour is a name, a 0 to 255 palette index or #rrggbb; default leaves the terminal's own colour. The defaults draw exactly what the statusline drew before, NO_COLOR still turns everything off, and the existing render tests pass unchanged.

One small fix on the way: text with no colour used to be followed by a lone reset, which put an escape sequence into NO_COLOR output. It is now left alone.

Roles for elements that do not exist yet (project, git, custom line) arrive with those elements, so statusline keys never lists a setting that does nothing. Nine claude-hud colour settings are mapped in the parity table.

…aracters

colours.* set the colour of each part of the statusline by role (the
context and quota bars below their warning thresholds, the warning and
critical colours, the model and label text, and the unused part of a bar)
and bar.filled and bar.empty set the characters a bar is drawn with. A
colour is a name, a palette index or #rrggbb, and NO_COLOR still turns all
colour off. The defaults draw what the statusline always drew.

Text that has no colour is no longer wrapped in a lone reset, which put an
escape sequence into NO_COLOR output.
@Mearman
Mearman merged commit fe5746c into main Oct 19, 2026
32 checks passed
@Mearman
Mearman deleted the feat/statusline-colours branch October 19, 2026 20:48
@ExaDev ExaDev deleted a comment from chatgpt-codex-connector Bot Oct 19, 2026
@ExaDev ExaDev deleted a comment from chatgpt-codex-connector Bot Oct 19, 2026
@ExaDev ExaDev deleted a comment from chatgpt-codex-connector Bot Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant