Skip to content

D688: the 16-colour refusal cell reads on every theme; scr.color.grep keeps a grep painted - #425

Merged
0verflowme merged 2 commits into
rebuild-design-18from
d688-legend-contrast
Nov 26, 2026
Merged

0verflowme merged 2 commits into
rebuild-design-18from
d688-legend-contrast

Conversation

@0verflowme

Copy link
Copy Markdown
Member

Roadmap row D688, stacked on #424 (rebuild-design-18).

Legend contrast (owner r2s-tui theme.rs). The 16-colour ! cell was 41;97: bright white on the theme's red, 1.38:1 on agg github-dark (#f97583) and 2.6:1 on svg-term (#e88388), so the demo recording showed an empty pink cell. It is now 41;30. Over 16 palettes (agg's 12 themes, xterm, VGA, iTerm2, svg-term-cli) black's worst ratio is 2.46:1 (nord), bright white's 1.38:1. _ is bold at every depth: it is the one mark on the cell's bottom edge. Depths 2 and 3 keep their explicit colours.

pdd~:N..M colour (owners r2s config.rs, commands::run, grep.rs). radare2 strips colour from a grep under scr.color.grep=false, its default, and keeps it under true (libr/cons/grep.c:907-910). r2s gains the key with the same default. Under true the statement keeps its terminal layout: colour, rails, the cut. Words, columns, orders and repeats still read each line without its escapes (radare2 reads the escapes too; listed under judged in ~??). A whole kept line prints painted; a column prints as text.

Tests, each red on the parent:

  • theme.rs a_sixteen_colour_cell_takes_the_glyph_that_reads_on_most_themes, the_assumed_mark_is_bold, the_visual_mode_style_is_the_depth_one_entry (3 failed with the old table).
  • crates/r2s/tests/theme.rs scr_color_grep_keeps_the_painted_rows: rows 3..8 of painted, railed pdd @ sym.fnv1a32 byte for byte under the key, the plain rows without it (the parent refuses the key).

Hand check: pd? and pdd @ main~:30..42 on the demo wc, run in a pty and rendered with agg github-dark. ! is black on pink and legible; _ is bold purple. Under scr.color.grep=true the range equals rows 30..42 of the painted pdd, rails included. The default prints the plain rows.

Checks: fmt, clippy -D warnings --all-targets on r2s and r2s-tui, cargo test -p r2s-tui -p r2s --features r2s/sleigh --no-fail-fast all pass, tests/db 500 of 500, 0 goldens moved.

🤖 Generated with Claude Code

https://claude.ai/code/session_01456qmqCGpCWJkrg6JUZNNM

…or.grep keeps a grep painted (D688)

The `!` cell was `41;97`: bright white on the theme's red, 1.38:1 on
github-dark's #f97583 and 2.6:1 on svg-term's #e88388 (the demo recording).
It is now `41;30`, the glyph with the higher worst ratio over 16 palettes
(agg's 12 themes, xterm, VGA, iTerm2, svg-term-cli): 2.46:1 against 1.38:1.
`_` is bold at every depth, the one mark on the cell's bottom edge.

radare2 strips colour from a grep under scr.color.grep=false, its default,
and keeps it under true (grep.c:907-910). r2s gains the key: true keeps the
statement's terminal layout (colour, rails, cut); words, columns and orders
still read the text without escapes, judged in `~??`.

Hand check: `pd?` and `pdd @ main~:30..42` on the demo wc in a pty, rendered
with agg github-dark: `!` is black on pink and legible, `_` bold purple; the
grep under scr.color.grep=true prints rows 30..42 of painted, railed `pdd`
byte for byte; the default prints the plain rows. 0 goldens moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01456qmqCGpCWJkrg6JUZNNM
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T07:23:07.740081Z 645a9c8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the full-ci Run both CI tiers on this pull request label Nov 26, 2026
@0verflowme
0verflowme added this pull request to stack #426 November 26, 2026 07:22
…from (D688)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01456qmqCGpCWJkrg6JUZNNM
@github-actions github-actions Bot removed the full-ci Run both CI tiers on this pull request label Nov 26, 2026
@0verflowme
0verflowme merged commit e2132b9 into master Nov 26, 2026
57 checks passed
@0verflowme
0verflowme deleted the d688-legend-contrast branch November 26, 2026 15:45
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