You are not logged in.

#1 2017-01-23 04:28:35

azat_io
Member
Registered: 2016-11-16
Posts: 24

Problem with Tmux colors

Hey.

I have some strange problem with displaying colors in Tmux. Colors are displayed slightly differently. I'm running Tmux with command: tmux -2

Look at the screenshots.

Normal colors: https://vk.com/doc11494459_441228257?ha … 727703c56f
Color is Tmux: https://vk.com/doc11494459_441228258?ha … fb6b7decc4

Here is a part of my config:

set -g default-terminal "screen-256color"

# Theme

set -g status "on"
set -g status-attr "none"
set -g status-justify "left"
set -g status-bg "#3c3836"

set -g status-left-attr "none"
set -g status-left-length "100"
set -g status-left "#[fg=#282828,bg=#a89984,bold] #S #[fg=#a89984,bg=#3c3836,nobold,nounderscore,noitalics]"

set -g status-right-attr "none"
set -g status-right-length "100"
set -g status-right "#[fg=#504945,bg=#3c3836,nobold,nounderscore,noitalics]#[fg=#a89984,bg=#504945] %Y-%m-%d  %H:%M #[fg=#a89984,bg=#504945,nobold,nounderscore,noitalics]#[fg=#282828,bg=#a89984] #h "

setw -g window-status-attr "none"
setw -g window-status-separator ""
setw -g window-status-format "#[fg=#a89984,bg=#3c3836] #I #[fg=#a89984,bg=#3c3836] #W "

setw -g window-status-activity-attr "none"
setw -g window-status-current-format "#[fg=#3c3836,bg=#fabd2f,nobold,nounderscore,noitalics]#[fg=#282828,bg=#fabd2f] #I #[fg=#282828,bg=#fabd2f] #W #[fg=#fabd2f,bg=#3c3836,nobold,nounderscore,noitalics]"

set -g pane-active-border-fg "#fabd2f"
set -g pane-border-fg "#3c3836"

set -g message-command-fg "#a89984"
set -g message-command-bg "#3c3836"
set -g message-fg "#a89984"
set -g message-bg "#3c3836"

Looks like it's not a Vim problem, because bottom panel colors also looks strange.

Also, this script says me that all colors works good: https://gist.github.com/limingjie/036523669f428105ca81

Normal colors: https://vk.com/doc11494459_441228281?ha … 88b6402d0d
Tmux colors (looks the same): https://vk.com/doc11494459_441228282?ha … 7a1ee6b6ae

What's wrong?

Offline

#2 2017-01-23 11:10:47

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: Problem with Tmux colors

Try something akin to this

# window title colors; non active
    set -g window-status-fg colour12
    set -g window-status-bg default
    set -g window-status-attr dim
     
    # window title colors; active
    set -g window-status-current-fg colour38
    set -g window-status-current-bg default
    #set -g window-status-current-attr bright

Offline

#3 2017-01-23 11:25:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Problem with Tmux colors

Sorry, but what's the problem?  I keep looking at your two screen shots and the colors are identical.  What is it that you think is different and needs fixing?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2017-01-23 11:57:39

azat_io
Member
Registered: 2016-11-16
Posts: 24

Re: Problem with Tmux colors

cirrus wrote:

Try something akin to this

# window title colors; non active
    set -g window-status-fg colour12
    set -g window-status-bg default
    set -g window-status-attr dim
     
    # window title colors; active
    set -g window-status-current-fg colour38
    set -g window-status-current-bg default
    #set -g window-status-current-attr bright

Not works for me :-(

Trilby wrote:

Sorry, but what's the problem?  I keep looking at your two screen shots and the colors are identical.  What is it that you think is different and needs fixing?

Red color from Vim and white color from bottom panel are different

Offline

Board footer

Powered by FluxBB