Could be UTF-8 characters being sent from your script without UTF-8 being 
turned on. Try adding the following to you .tmux.conf:
> # Treat top-bit-set-option characters in the status-left and status-right 
> strings as UTF-8
> set-option -g status-utf8 on

The only other thing that comes to mind is something terminal / os specific. 
What are you using?

Also, a screen shot might be helpful.

-Adrian

On Nov 5, 2012, at 10:41 AM, ian m <ianisthewal...@yahoo.com> wrote:

> Thank you for your response.
> 
> I am not using:
> set -g status-right "text"
> that works as expected.
> 
> I have tried:
> set -g status-right '#( echo "text" )'
> this is what causes the issues. A simple case like this can easily be fixed 
> by using the first method, but I am using something like this to get dynamic 
> information:
> set -g status-right '#( /call/my/script )'
> 
> ##/call/my/script##
> #!/bin/sh
> if [blah blah]; then
>  echo "this" 
> else
> echo "that"
> 
> using printf instead of echo does not fix the problems with the glitching. 
> also, my clock is already the rightmost thing i specify in the status. the 
> garbled text is always added on beyond that regardless of what is there. 
> 
> From: Adrian Luff <adr...@luff.me>
> To: ian m <ianisthewal...@yahoo.com> 
> Cc: "tmux-users@lists.sourceforge.net" <tmux-users@lists.sourceforge.net> 
> Sent: Sunday, November 4, 2012 11:23 PM
> Subject: Re: Tmux: echos to the status bar
> 
> Ian,
> 
> Are you echoing using a simple text string…
> set -g status-right "text"
> …a system call...
> set -g status-right '#( echo "text" )'
> …or a terminal echo string…
> $printf "\033]2;text\033\\"
> ...or perhaps something else?
> 
> I recall seeing something like this issue when updating elements flush to the 
> right edge of the screen. I think I just rearranged the elements of the 
> statusbar to keep the clock (with timezone) always on the right.
> 
> set-option -g status-right " 
> #[fg=cyan]#36T#[fg=colour238]|#[fg=yellow]%H:%M:%S %a %d-%b %Z"
> 
> -Adrian
> 
> On Nov 4, 2012, at 7:53 PM, ian m <ianisthewal...@yahoo.com> wrote:
> 
>> Hello,
>> 
>> For my tmux statusbar, I call some scripts to echo some text to the status 
>> right. This however results in some glitched text to the far right side of 
>> the statusbar. For each character that is echoed, I get an extra glitched 
>> character on the statusbar. The character seems to be whatever was 
>> previously ocupying that character before. It is usually my clock, so I will 
>> get for example 4:2424 if I echo two characters. If I disable the statusbar, 
>> and reenable it, the characters are just orange from the tmux comandline. 
>> Attempting to limit the length of the status right only limits the real 
>> characters. The glitches are still tacked on the end afterwards. 
>> 
>> 
>> Why is this happening, and how can I prevent this from occurring? Thanks for 
>> any help!
>> 
>> Ian
>> 
>> 
>> ------------------------------------------------------------------------------
>> LogMeIn Central: Instant, anywhere, Remote PC access and management.
>> Stay in control, update software, and manage PCs from one command center
>> Diagnose problems and improve visibility into emerging IT issues
>> Automate, monitor and manage. Do more in less time with Central
>> http://p.sf.net/sfu/logmein12331_d2d
>> _______________________________________________
>> 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

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to