On Mon, Jan 06, 2014 at 03:46:50PM +0000, Nicholas Marriott wrote:
> Try this please, which will let you do for example:
> 
> set -g status-left '#{?session_many_attached,yes,no}'
> 
> To show if a session is attached to multiple clients.

Hi,
First - sorry for laggin in test. Got busy.

So, tested, and:
1. when compiling, when ncurses-dev is not installed it's reported as
   error on make time, and not on configure time - i think it would be
   good to fix
2. when compiling I see these messages (warnings, I guess):
#v+
compat/getopt.c: In function ‘BSDgetopt’:
compat/getopt.c:48:14: warning: initialization discards ‘const’ qualifier from 
pointer target type [enabled by default]
 #define EMSG ""
              ^
compat/getopt.c:57:23: note: in expansion of macro ‘EMSG’
  static char *place = EMSG;  /* option letter processing */
                       ^
compat/getopt.c:66:10: warning: assignment discards ‘const’ qualifier from 
pointer target type [enabled by default]
    place = EMSG;
          ^
compat/getopt.c:73:10: warning: assignment discards ‘const’ qualifier from 
pointer target type [enabled by default]
    place = EMSG;
          ^
compat/getopt.c:101:10: warning: assignment discards ‘const’ qualifier from 
pointer target type [enabled by default]
    place = EMSG;
          ^
compat/getopt.c:112:9: warning: assignment discards ‘const’ qualifier from 
pointer target type [enabled by default]
   place = EMSG;
         ^
#v-

3. Couldn't get docs to install. When doing make install I saw:
#v+
=$ sudo make install
make[1]: Entering directory `/home/depesz/q/tmux'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
  /usr/bin/install -c 'tmux' '/usr/local/bin/tmux'
make  install-exec-hook
make[2]: Entering directory `/home/depesz/q/tmux'
if test xmdoc = xmdoc; then \
                sed -e "s|@SYSCONFDIR@|/etc|g" ./tmux.1 \
                        >./tmux.1.mdoc; \
        else \
                sed -e "s|@SYSCONFDIR@|/etc|g" ./tmux.1| \
                        gawk -fmdoc2man.awk >./tmux.1.man; \
        fi
/usr/local/share/man/man1
/bin/bash: /usr/local/share/man/man1: Is a directory
make[2]: *** [install-exec-hook] Error 126
make[2]: Leaving directory `/home/depesz/q/tmux'
make[1]: *** [install-exec-am] Error 2
make[1]: Leaving directory `/home/depesz/q/tmux'
make: *** [install-am] Error 2
#v-

But, going back to original point.

Yes - when I have multiple clients attached to the same session, it shows 
nicely yes/no.

But - it doesn't work for "new-session -t old_one"

Best regards,

depesz

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to