Skip to content

feat: enhance terminal color support and add color profile detection #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brunoantonieto
Copy link

my aim here is to fix issue #117, as i believe many mac users (like me) uses the default terminal for any reason to get the job done.

it's not a fancy fix, just asked claude 4 to make a fix based on the comment bellow:

the reason for these styling issues is that we assume in opencode that your terminal supports true color; the built-in mac terminal app only supports ansi 256 color. the recommendation, for now, is to use a more full-featured terminal (i recommend ghostty, it's amazing).

we can leave this issue open until we're able to properly handle a graceful fallback to 256 color. lipgloss supports CompleteColor for defining better fallbacks, but that will only get us part of the way there. we also assume true color in the diff view, and that has some manual escape sequence munging, so we'll need to update that to handle these scenarios as well.

image

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