Colored background text highlighting is unreadable in many settings

Resolved 💬 4 comments Opened Aug 13, 2025 by brandonculverwork Closed Aug 18, 2025
💡 Likely answer: A maintainer (seratch, member) responded on this thread — see the highlighted reply below.

<img width="869" height="469" alt="Image" src="https://github.com/user-attachments/assets/3d4d782d-832a-46be-b700-6ba5dd188b87" />

This approach to change highlighting is incompatible with many terminal color schemes.

Coloring the text itself is a much more standard approach for this kind of thing in the terminal.

View original on GitHub ↗

4 Comments

nestedlogicsol · 1 year ago

<img width="844" height="612" alt="Image" src="https://github.com/user-attachments/assets/a2eff6ce-a755-43b3-a827-0281c6158747" />

Here's another example.

seratch member · 1 year ago

https://github.com/openai/codex/pull/2270 is going to resolve this. The next version including the fix is not yet released, but if you're interested, you can try https://github.com/openai/codex/releases/tag/rust-v0.22.0-alpha.2 out now.

5ocworkshop · 1 year ago

Just weighing in as one of the 8% or so of males who are color blind (red/green in my case), would be nice to have some palette options. For many of us, it's that we can't easily differentiate low contrast differences (e.g. dark blue and purple). Or, as the example above, that yellow/green reverse with white text is almost unreadable to me. Darker green and white (as seen in 0.21 on my system) is fine, as is red and white.

seratch member · 1 year ago

Since 0.22.0 works well, let us close this issue now. Thanks again for flagging this!