Can you just use the desired characters directly in your .tmux.conf? With UTF-8 
support enabled for my (Mac) terminal and in tmux.conf I am able to use 
characters successfully. Here's what I mean...

.tmux.conf
> # Expect UTF-8 sequences to appear in this window
> set-window-option -g utf8 on
> # Treat top-bit-set-option characters in the status-left and status-right 
> strings as UTF-8
> set-option -g status-utf8 on
> 
> set-window-option -g window-status-current-format "▕#[underscore] #I.#P:#W 
> #[nounderscore]▏"

Not sure if the Unicode characters will show up for you in the last line. I'm 
using the 1/8th left and right block Unicode characters in my status (just 
inside the quotes) around the currently selected tab information.

I have seen issues with these settings in xQuartz xterm, which doesn't seem to 
support UTF-8 correctly. In addition to the terminal you need a font which 
supports all the Unicode characters. If you want to verify UTF-8 is working in 
your terminal you can download this file. A simple "cat UTF-8-demo.txt" should 
output various Unicode characters correctly.

-Adrian

On Oct 28, 2012, at 4:17 PM, ian m <ianisthewal...@yahoo.com> wrote:

> Hello,
> 
> I am running tmux on an embedded linux system. I have been trying to add 
> special characters to my status bar in tmux for a few days. This was made 
> difficult because when I attempt to set the status bar in my config file 
> through something like
> 
> set -g status-right "#(echo -e '\xnn\xnn)'"
> 
> My status bar will simply show "xnnxnn" rather than the character that hex 
> represents. other escapes also do not work (for example like escaping into 
> the alternate character set). The command works as expected from a terminal 
> however, so I wrapped the call into a shell script and simply call that shell 
> script in my tmux config via
> 
> set -g status-right "#(/path/to/shellscript)"
> 
> This finally did succeed in placing the special character on the statusbar, 
> however it messed up the far right edge. For every character I place on the 
> status bar in this way, another character is appended to the end of my 
> statusbar in a fairly glitchy manner. It usually simply repeats the last 
> legitimate character on the statusbar (in my case the minutes of the time). 
> If the statusbar gets reset or hidden and then restored, then rather than 
> repeating the final character, I just get an orange background with no 
> character in it for those spaces. 
> 
> What is this strange behavior, and how can I fix it?
> 
> Thanks for any help!
> 
> Ian
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to