Re: status bar variables

2012-12-18 Thread Thomas Adam
On 18 December 2012 02:36, Mark Volkmann  wrote:
> I'm trying to understand the difference between #T and #W.

#T is the pane title, #W the window title.

The pane title will default to the hostname, or if that's not set the
empty string -- when creating the pane (screen.c:screen_init()).  The
pane title can still be changed after this point though.

> The PragProg tmux book says #T is the window title and #W is the window
> name.

Yet another example from that book which is inaccurate then.  I'd
contact the author if possible and mention that to him/her.

-- Thomas Adam

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Tmux hangs after a while

2012-12-18 Thread Guang-Nan Cheng
It happend again. This time, I don't even have a .tmux.conf file.

Is there any trick so that I can send a signal to the PID and tmux will
print the stack so we know why it hangs?



On Sun, Dec 9, 2012 at 3:22 AM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:

> Does this happen if you remove the #() from your set-titles-string?
>
>
> On Sun, Dec 09, 2012 at 02:29:24AM +0800, Guang-Nan Cheng wrote:
> >bind C-a last-window
> >bind C-n next-window
> >bind p previous-window
> >bind | split-window -h
> >#unbind C-b
> >unbind %
> ># mode-keys
> >set-window-option -g mode-keys vi
> ># View
> >set -g status-interval 5
> >set -g status-left-length 100
> >set -g status-right-length 50
> >set-option -g set-titles on
> >set-option -g set-titles-string "@#(hostname | sed 's/..*//')"
> >set -g status-bg black
> >set -g status-fg white
> >set -g status-attr dim
> >set -g status-left '#[fg=green, bold]#H'
> >set -g status-right '#[fg=green,bold][%Y/%m/%d(%a)%H:%M]#[default]'
> >set -g message-attr bold
> >set -g message-fg white
> >set -g message-bg red
> >set-window-option -g mode-bg white
> >set-window-option -g mode-fg black
> >set-window-option -g window-status-bg black
> >set-window-option -g window-status-fg white
> >set-window-option -g window-status-current-bg yellow
> >set-window-option -g window-status-current-fg black
> >set-window-option -g window-status-current-attr bold
> ># Option
> >set-window-option -g utf8 on
> >set-option -g mouse-select-pane on
> >set-option -g base-index 1
> ># KeyBindings
> >bind r source-file ~/.tmux.conf
> >bind Space choose-window
> >bind b break-pane
> >bind h split-window -v
> >bind v split-window -h
> >set -g history-limit 1
> >On Sun, Dec 9, 2012 at 12:59 AM, Nicholas Marriott
> ><[1]nicholas.marri...@gmail.com> wrote:
> >
> >  Hi
> >
> >  What is in your .tmux.conf?
> >
> >  On Wed, Dec 05, 2012 at 05:09:53PM +0800, Guang-Nan Cheng wrote:
> >  > ** **I'm on Fedora 17 64 bit and installed tmux.
> >  > ** **I found that if I left the tmux open for few days then it
> will
> >  hangs.
> >  > ** **I can not attach or start a new one. `tmux kill-server` hangs
> >  too.
> >  > ** **What should I do in this case?
> >  > ** **Here is a ps xf.
> >  > ** 1915 ? ** ** ** **Ss ** ** 0:42 /usr/sbin/sshd -D
> >  > ** **14506 ? ** ** ** **Ss ** ** 0:00 **\_ sshd: root@pts/5 ** **
> >  > ** **14511 pts/5 ** **Ss ** ** 0:00 **| ** \_ -fish
> >  > ** **14627 pts/5 ** **S+ ** ** 0:00 **| ** ** ** \_ tmux att -d
> >  > ** **27276 ? ** ** ** **Ss ** ** 0:00 **\_ sshd: root@pts/6 ** **
> >  > ** **27282 pts/6 ** **Ss ** ** 0:00 **| ** \_ -fish
> >  > ** **27421 pts/6 ** **S+ ** ** 0:00 **| ** ** ** \_ tmux att -d
> >  > ** **27558 ? ** ** ** **Ss ** ** 0:00 **\_ sshd: root@pts/7 ** **
> >  > ** **27561 pts/7 ** **Ss+ ** **0:00 **| ** \_ -fish
> >  > ** **27726 ? ** ** ** **Ss ** ** 0:00 **\_ sshd: root@pts/8 ** **
> >  > ** **27729 pts/8 ** **Ss+ ** **0:01 **| ** \_ -fish
> >  > ** **31548 ? ** ** ** **Ss ** ** 0:00 **\_ sshd: root@pts/9 ** **
> >  > ** **31551 pts/9 ** **Ss+ ** **0:00 **| ** \_ -fish
> >  > ** **31977 ? ** ** ** **Ss ** ** 0:00 **\_ sshd: root@pts/10 
> >  > ** **31980 pts/10 ** Ss ** ** 0:00 **| ** \_ -fish
> >  > **  483 pts/10 ** S+ ** ** 0:00 **| ** ** ** \_ tmux
> kill-server
> >
> >  >
> >
>  
> --
> >  > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free
> Trial
> >  > Remotely access PCs and mobile devices and provide instant support
> >  > Improve your efficiency, and focus on delivering more value-add
> >  services
> >  > Discover what IT Professionals Know. Rescue delivers
> >  > [2]http://p.sf.net/sfu/logmein_12329d2d
> >
> >  > ___
> >  > tmux-users mailing list
> >  > [3]tmux-users@lists.sourceforge.net
> >  > [4]https://lists.sourceforge.net/lists/listinfo/tmux-users
> >
> > References
> >
> >Visible links
> >1. mailto:nicholas.marri...@gmail.com
> >2. http://p.sf.net/sfu/logmein_12329d2d
> >3. mailto:tmux-users@lists.sourceforge.net
> >4. https://lists.sourceforge.net/lists/listinfo/tmux-users
>
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://

Re: Tmux hangs after a while

2012-12-18 Thread Thomas Adam
On 18 December 2012 16:11, Guang-Nan Cheng  wrote:
> It happend again. This time, I don't even have a .tmux.conf file.
>
> Is there any trick so that I can send a signal to the PID and tmux will
> print the stack so we know why it hangs?

Attach strace to the server pid of tmux.  Or better yet, gdb, and
issue "bt" to see if that helps any.

-- Thomas Adam

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users