Wrong colors in airline text when in tmux but ok in wsltty #193

Open
opened 2026-01-30 21:45:12 +00:00 by claunia · 0 comments
Owner

Originally created by @persep on GitHub (Mar 15, 2018).

Originally assigned to: @zadjii-msft on GitHub.

  • Your Windows build number: Microsoft Windows [Version 10.0.16299.309]

  • What you're doing and what's happening: see description below

  • What's wrong / what should be happening instead: see description below

Hi,
when in terminal (ubuntu on windows) and in wsltty (mintty 2.8.4 wsltty 1.8.4) I have vim with gruvbox and the gruvbox airline all working ok:
Imgur

If I change to the wombat airline theme, for testing purposes, it also works ok:
Imgur

So the airline themes work fine in the terminal but if I open vim inside tmux on ubuntu for windows I get a different color in the text from the vim status line but it's the correct colors in tmux on wsltty. Look at the different color in the "NORMAL" text
Imgur

And if a change to the wombat airline you can see the "NORMAL" text color is also lighter:
Imgur

It happens to all the other airline themes like solarized for example.
I've tried this in vim 8-1605 and tmux 2.1 and 2.6. I've also tried with tmux in 256 and 24 bit colors and it doesn't make a difference. Vim colors schemes are ok in tmux but not the text color from the airline themes. They render with wrong colors inside tmux on the ubuntu on windows terminal but correctly in tmux on wsltty.

My .tmux.conf file is:

set -g default-terminal "tmux-256color"                                              
# enable 24 bit support                                                              
set -g terminal-overrides ',xterm-256color:Tc'  

And my vimrc is here

Originally created by @persep on GitHub (Mar 15, 2018). Originally assigned to: @zadjii-msft on GitHub. * Your Windows build number: Microsoft Windows [Version 10.0.16299.309] * What you're doing and what's happening: see description below * What's wrong / what should be happening instead: see description below Hi, when in terminal (ubuntu on windows) and in wsltty (mintty 2.8.4 wsltty 1.8.4) I have vim with gruvbox and the gruvbox airline all working ok: ![Imgur](https://i.imgur.com/7I8xNWy.jpg) If I change to the wombat airline theme, for testing purposes, it also works ok: ![Imgur](https://i.imgur.com/9DD2mZs.jpg) So the airline themes work fine in the terminal but if I open vim inside tmux on ubuntu for windows I get a different color in the text from the vim status line but it's the correct colors in tmux on wsltty. Look at the different color in the "NORMAL" text ![Imgur](https://imgur.com/AjInN9G.jpg) And if a change to the wombat airline you can see the "NORMAL" text color is also lighter: ![Imgur](https://imgur.com/M4J8FKJ.jpg) It happens to all the other airline themes like solarized for example. I've tried this in vim 8-1605 and tmux 2.1 and 2.6. I've also tried with tmux in 256 and 24 bit colors and it doesn't make a difference. Vim colors schemes are ok in tmux but not the text color from the airline themes. They render with wrong colors inside tmux on the ubuntu on windows terminal but correctly in tmux on wsltty. My `.tmux.conf` file is: set -g default-terminal "tmux-256color" # enable 24 bit support set -g terminal-overrides ',xterm-256color:Tc' And my vimrc is [here](https://gist.github.com/persep/e66f00f84f619b8086ec60e4e878ef5a)
claunia added the Product-ConhostResolution-Fix-Available labels 2026-01-30 21:45:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#193