Try this, although it still sucks that it always uses the active pane, should be able to specify target to display-message.
Index: status.c =================================================================== RCS file: /cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.71 diff -u -p -r1.71 status.c --- status.c 26 Jan 2011 01:54:56 -0000 1.71 +++ status.c 21 Feb 2011 20:56:41 -0000 @@ -402,6 +402,9 @@ status_replace1(struct client *c,struct case 'W': ptr = wl->window->name; goto do_replace; + case 'Y': + ptr = wl->window->active.tty; + goto do_replace; case 'F': ptr = window_printable_flags(s, wl); freeptr = ptr; On Mon, Feb 21, 2011 at 06:08:18PM +0100, Christian Neukirchen wrote: > Felix Rosencrantz <f.rosencra...@gmail.com> writes: > > > I use the "tmux server-info" command to extract details about windows > > and sessions from the "Sessions:", to put information in my prompt. > > But my parsing script is somewhat brittle since the format of the > > output is not standard. > > > > Tmux is changing so there will be a need to change the output of the > > server-info command. I wonder if it would be possible to print the > > server-info output in a format that is easier to parse (e.g. yaml) by > > code, and as additional details need to be added or removed from the > > output, existing parse code wouldn't need to change (or at least less > > frequently). > > +1 > > http://chneukirchen.org/dotfiles/bin/tmux-neww-in-cwd was really tricky > to write. (Perhaps display-message also could directly display the pty...) > > -- > Christian Neukirchen <chneukirc...@gmail.com> http://chneukirchen.org > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Index, Search & Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. Free Software Download: http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users