Skip to content
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

Tmux Colour Schemes Don't Work Properly (Background in particular) #3162

Open
randomcoder67 opened this issue Mar 5, 2024 · 1 comment
Open

Comments

@randomcoder67
Copy link

Description of the problem or steps to reproduce

Color scheme don't work properly in tmux. An example is the "one-dark" theme. In alacritty without tmux, the background will be the correct bluish grey color. In tmux, it's just a default grey.

I've tried all the fixes I can find online, most of which involve adding a line like: set -g default-terminal "screen-256color" to tmux.conf, with various different values. Non of them seemed to work. The MICRO_TRUECOLOR value is set to 1 in both alacritty and tmux. The issue also occurs in Xfce4-terminal.

The only fix I have found is to set alacritty (not tmux) to TERM="xterm-kitty" (the issue doesn't occur on kitty).

Specifications

Version: 2.0.13
Commit hash: 68d88b5
OS: Arch
Compiled on October 22, 2023
Terminal: Alacritty with tmux

@randomcoder67
Copy link
Author

For now, I am using this alias in my .bashrc to get around the issue. It sets TERM back to the old value after tmux exits, so it shouldn't interfere with programs ran outside tmux.

alias tmux='oldterm="$TERM"; TERM="xterm-kitty"; tmux; TERM="$oldterm"'

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

No branches or pull requests

1 participant