tmux-powerline: Patched Font Glyphs do not appear on the Tmux Powerline.

Issue: I do not see the Glyphs in the tmux powerline :-

Imgur

OS: Mac OS X 10.7.4 Terminal Application: iTerm 2

>> tmux -V
tmux 1.6

>> bash --version
GNU bash, version 4.2.37(2)-release (i386-apple-darwin11.2.0)

>> zsh --version
zsh 5.0.0 (x86_64-apple-darwin11.2.0)

>> ./status-left.sh 
#[bg=colour148] #[fg=colour148, bg=colour148]#[fg=colour234,bg=colour148]0:1.1 #[fg=colour148, bg=colour33]⮀#    
[fg=colour0,bg=colour33]   ilab #[fg=colour33, bg=colour24]⮀#[fg=colour255,bg=colour24]   ⓛ 10.50.203.149   #[fg=white,   
bg=colour24]⮁#[fg=colour255,bg=colour24]   ⓦ 212.201.44.246   #[fg=colour24, bg=colour235]⮀#[fg=red,bg=colour235]   #
[default]

>> ./status-right.sh
#[fg=colour237, bg=colour235]⮂#[fg=colour167,bg=colour237]    0.65 0.84 0.86 #[fg=colour37, bg=colour237]⮂#  
[fg=colour255,bg=colour37]   ✈ 26°C    #[fg=colour235, bg=colour37]⮂#[fg=colour136,bg=colour235]   Sat #[fg=default,   
bg=colour235]⮃#[fg=colour136,bg=colour235]   2012-07-28 #[fg=default, bg=colour235]⮃#[fg=colour136,bg=colour235]   14:07  
#[default]

My tmux configuration:

# split panes
bind | split-window -h
bind - split-window -v

# resize panes
bind -r h resize-pane -L 5
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5

# enable 256-colors
set -g default-terminal "screen-256color"

# enable utf-8 on status bar
set -g status on
set -g status-utf8 on

# status refresh interval
set -g status-interval 2

# status left
set -g status-left-length 60
set -g status-left "#(~/.tmux/tmux-powerline/status-left.sh)"

# status right
set -g status-right-length 90
set -g status-right "#(~/.tmux/tmux-powerline/status-right.sh)"

# solarized theme
source ~/.tmux/tmux-colors-solarized/tmuxcolors.conf

# window and pane start index
set -g base-index 1
set -g pane-base-index 1

# center the window list
set -g status-justify centre

# vi mode for the buffer
setw -g mode-keys vi

# command sequence for nested tmux session
bind-key a send-prefix

# remap prefix to ctrl-a
set -g prefix C-a

I am using a patched Ubuntu Mono font. I previously tried using the patched font available for download from the vim-powerline wiki page, but then I also tried patching it myself, but to no avail.

I personally do not see that the patched font is the issue, since running the scripts independently do produce the glyphs, they just don’t appear on the tmux status line for some reason.

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Reactions: 1
  • Comments: 25 (3 by maintainers)

Most upvoted comments

My terminal locale settings were set to ASCII. Once I changed them to UTF-8, everything is good.

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

@erikw yeh I guess that is where my confusion arises from on how to update my machine with the older type to the newer? I thought importing the font into Font Book and applying it in iTerm preferences > profiles > text would do the trick. Any info on how to update these font glyphs system wide would be helpful if that is the issue.

Like I said I’m not using tmux-powerline but when I do the font glyphs actually work briefly. The problem is when I start a new tmux session/window the tmux-powerline will flash on, usually doubled up like the screenshot, and then disappear on it’s own or when I enter text into the terminal. In addition, there is a white bar beneath the lines with the glyphs that looks like it contains the normal tmux status display. My settings are as you suggested:

  • disabled airline tmuxline
  • create snapshot of airline theme
  • soure-file the snapshot in my tmux.conf

screen shot 2015-03-09 at 9 53 03 am