Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Some text is displayed white on white #117

Open

Description

@deverman

When I try to use opencode on my Mac OS Sequoia terminal the background is black and some of the text is showing white on white.

Image

After Asking ChatGPT about this issue it suggested to use the command below which showed up empty.

echo $COLORTERM

Then I ran opencode using this command:

COLORTERM=truecolor opencode

This gave better results but some of the text at the bottom of the screen now is not readable:

Image

My Terminal preferences are set to this:

Image

I had my ohmyzsh and starship installed and I uninstalled both of them and still ran into the problem.

Activity

  1. deverman commented on Apr 29, 2025

    @deverman
    Author

    I have created a pull request to fix one part of this problem. There are still other areas were there is a problem that I have not been able to fix.

    #118

  2. adamdotdevin commented on Apr 29, 2025

    @adamdotdevin

    yeah, i'm overhauling all things color in #113 right now! let's see if i don't resolve these issues as part of this PR and circle back, hoping to land it very soon!

  3. adamdotdevin commented on Apr 29, 2025

    @adamdotdevin

    alright, unfortunately going to defer on this and not lump it into #113 as i need to land that PR asap (it's a pretty large diff). 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.

  4. deverman commented on Apr 30, 2025

    @deverman
    Author

    Ok thanks for looking into this. I have installed Ghostty and everything looks great!

  5. kujtimiihoxha commented on May 1, 2025

    @kujtimiihoxha
    Contributor

    @deverman I think I know what the issue is and moving to bubble tea v2 will fix.

  6. prideofconcept commented on Jun 15, 2025

    @prideofconcept

    Ran into this same issue, I wonder if we should update the readme to warn mac users?

  7. brunoantonieto commented on Jun 27, 2025

    @brunoantonieto

    hey guys, i'm having the same problem and opened a pr with a fix. i believe its a good thing as many people should use default mac terminal on daily basis

  8. jaytaylor commented on Jul 16, 2025

    @jaytaylor

    I've also run into this with Mac Terminal, @brunoantonieto was your fix merged or is it still pending?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions