Skip to content

In tmux sessions some of the styling is lost #1917

Closed

Description

@adeperio

Just noticing that some of the styling on the background of the input box is lost, and also the background of the message cards when opening opencode in tmux

Image

Activity

  1. sschwarzer commented on Aug 14, 2025

    @sschwarzer

    @adeperio Check if the environment variable TERM in the tmux session looks as expected. On one occasion (I don't remember the details) I had a TERM setting in a tmux window which used a non-truecolor terminal. So maybe also check COLORTERM.

  2. adeperio commented on Aug 15, 2025

    @adeperio
    Author

    Thanks @sschwarzer that was it! my TERM was set to TERM: tmux-256color. Thanks for the pickup!

    Here are the steps I used (actually opencode did this for me:)

    Manual Instructions to Enable Tmux Truecolor:

    1. Edit tmux config:
      echo 'set-option -ga terminal-overrides ",256col:Tc"' >> ~/.tmux.conf

    2. Reload tmux:
      tmux source-file ~/.tmux.conf

    3. Verify:
      tmux show-options -g terminal-overrides

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

Metadata

Metadata

Assignees

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