It is calculated in terms of the pane you are splitting, try eg splitw -p50 twice.
You could also split it like you want then get the layout from lsw and reapply it with selectl. On Wed, Apr 27, 2011 at 11:51:18PM +0000, Paul Hirose wrote: > How is the -p option for split-window calculated or "lines" or "cells" when > using the -l option? > > I have a gnome-terminal that is 100 columns by 69 rows using my current font. > new-session -d -n 'meow' 'CMD1' > split-window -h -p30 'CMD2' > split-window -h -p10 'CMD3' > > I thought that would split my terminal into 3 columns CMD1 | CMD2 | CMD3. > Does the window running CMD1/2/3 get 60%, 30%, 10% of the overall terminal > width? Or does CMD1 get 70% and CMD2 gets 30% of the overall terminal > width, and then CMD3 gets 10% of the 30% that CMD2 column gets? In other > words, are the three columns 60/30/10 characters wide? Or are they 70/27/3 > characters wide? I'm just not sure if the percentages are based on the > total width of the terminal or the width of the pane that is being split. > Having said that, either way, I get widths that don't make sense to me. > > Similarly, I did split-window -h -l 45, a split-window -h -l 35, thinking > it'd give me a column that's 45/35/20 characters wide. But it didn't. > > Trying various percentages and column widths doesn't get me the expected > widths. I've tried a variety of combinations. > > I can just create whatever size panes and then resize-pane (or use > M-left/right/up/down). But I was hoping a simple split-window -h -l30 would > give me a column 30chars wide (or split-window -v -l30 give me a row 30 lines > high.) > > Thank you, > PH > == > Paul Hirose > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users