In tmux sessions some of the styling is lost #1295

Closed
opened 2026-02-16 17:30:20 -05:00 by yindo · 2 comments
Owner

Originally created by @adeperio on GitHub (Aug 13, 2025).

Originally assigned to: @adamdotdevin on GitHub.

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
Originally created by @adeperio on GitHub (Aug 13, 2025). Originally assigned to: @adamdotdevin on GitHub. 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 <img width="750" height="473" alt="Image" src="https://github.com/user-attachments/assets/28343725-ebeb-407b-9cc4-707de9e7a6c5" />
yindo closed this issue 2026-02-16 17:30:20 -05:00
Author
Owner

@sschwarzer commented on GitHub (Aug 14, 2025):

@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.

@sschwarzer commented on GitHub (Aug 14, 2025): @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`.
Author
Owner

@adeperio commented on GitHub (Aug 15, 2025):

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

@adeperio commented on GitHub (Aug 15, 2025): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1295