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.
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] 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. 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 ------------------------------------------------------------------------------ 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