Skip to content

Fix unreadable text on light terminals - #5

Merged
sethmills21 merged 1 commit into
mainfrom
fix/light-terminals
Oct 16, 2026
Merged

sethmills21 merged 1 commit into
mainfrom
fix/light-terminals

Conversation

@sethmills21

Copy link
Copy Markdown
Owner

On a light Terminal.app profile, vibe names and key hints rendered near-white on white. Sonic only read COLORFGBG, which Terminal.app never sets, so it always assumed dark. It now asks the terminal for its background color (OSC 11) before the first frame and picks the light palette when the background is bright.

  • 250 ms query on startup, only when color mode is auto; no reply keeps dark
  • A late reply is ignored instead of read as a keypress
  • d still forces light or dark

Tested: in a 117×33 pty that answered with a white background, the picker and search results used the light palette. A pty that never answers stayed dark.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sethmills21
sethmills21 merged commit 1529a8e into main Oct 16, 2026
1 check passed
@sethmills21
sethmills21 deleted the fix/light-terminals branch October 16, 2026 15:29
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