Repository navigation
D688: the 16-colour refusal cell reads on every theme; scr.color.grep keeps a grep painted - #425
Merged
Merged
Conversation
…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
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…from (D688) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01456qmqCGpCWJkrg6JUZNNM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap row D688, stacked on #424 (rebuild-design-18).
Legend contrast (owner r2s-tui
theme.rs). The 16-colour!cell was41;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 now41;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..Mcolour (owners r2sconfig.rs,commands::run,grep.rs). radare2 strips colour from a grep underscr.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.rsa_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.rsscr_color_grep_keeps_the_painted_rows: rows 3..8 of painted, railedpdd @ sym.fnv1a32byte for byte under the key, the plain rows without it (the parent refuses the key).Hand check:
pd?andpdd @ main~:30..42on the demowc, run in a pty and rendered with agg github-dark.!is black on pink and legible;_is bold purple. Underscr.color.grep=truethe range equals rows 30..42 of the paintedpdd, rails included. The default prints the plain rows.Checks: fmt, clippy
-D warnings --all-targetson r2s and r2s-tui,cargo test -p r2s-tui -p r2s --features r2s/sleigh --no-fail-fastall pass,tests/db500 of 500, 0 goldens moved.🤖 Generated with Claude Code
https://claude.ai/code/session_01456qmqCGpCWJkrg6JUZNNM