On Mon, Feb 28, 2011 at 1:11 PM, Nicholas Marriott
<nicholas.marri...@gmail.com> wrote:
>
> On Mon, Feb 21, 2011 at 07:25:32PM -0800, Felix Rosencrantz wrote:
>> I thought I had missed the 'display-message -p' command.  The
>> information it provides would work for my current usage, however, as
>> you point out, that only applies to the active pane, it doesn't look
>> at the current tty of the tmux command.  If I try running that in
>> several windows or panes at once, some will get the incorrect values
>> (I want values for '#S:#I:#P'). So it don't get the correct values.
>
> Yeh we need to fix that, easiest way is to make display-message take a
> target-pane with some other flag (-t is used).
Though,  I don't think that would help in my case.  I start from my
.zshrc running within the pane as my shell is starting up.  As a
.zshrc running within a pane I can find my pid&tty, but I don't know
how that tty or pid fits within tmux's model of
sessions/windows/panes, and am trying to figure that out.

The syntax for target-pane doesn't allow me to specify a tty or pid to
target the pane, though I think tmux could be changed to do that.  It
is possible to target a client based on tty.  It's not clear to me why
tmux couldn't be changed to also specify a pane with a tty (or if that
is ambiguous, provide a way to list all such panes.)


> I've added this stuff to the todo list, dunno when I'll get to them.
Thanks!

-FR.
>>
>> It might help if a formatting string like display-message uses that
>> could be given to list-windows.
>>
>> On Mon, Feb 21, 2011 at 12:53 PM, Nicholas Marriott
>> <nicholas.marri...@gmail.com> wrote:
>> > server-info is for debugging, don't rely on it for anything at all.
>> >
>> > If there is something you need that isn't covered by list-sessions,
>> > list-windows, list-panes, display-message then those are the place to
>> > add it.
>> It might help if a formatting string like display-message uses that
>> could be given to list-windows.
>> >
>> > What would be really nice would be a way to represent their output in a
>> > general internal form that could be output nicely, eg we translate a
>> > window into a list of key,value pairs such as:
>> >
>> > [index=7, name=abc, width=159, height=48, layout=3fdf,159x48,0,0]
>> That would work for me.
>>
>>   This is sort of similar to a yaml data format, for example,
>>     {index: 7, name: abc, width: 159, height: 48, layout: [3fdf,159x48,0,0]}
>> (though my yaml is not very strong).
>>
>> >
>> > Then eg lsw could build a set of these lists and the output could be
>> > expressed by a format string such as '#{index}: #{name}
>> > [#{width}x#{height}] (layout=#{layout})' and it could be easy to
>> > customise. Also it would allow easier filtering, sorting, etc.
>> >
>> > Could use the same for choose-* and as the backend for #W etc.
>> >
>>
>> I'd be happy with something like that.
>>
>> -FR.
>> >
>> >
>> > On Mon, Feb 21, 2011 at 08:17:15AM -0800, Felix Rosencrantz wrote:
>> >> 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).
>> >>
>> >> -FR
>> >>
>> >> ------------------------------------------------------------------------------
>> >> 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
>> >
>

------------------------------------------------------------------------------
Free Software Download: 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. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to