Discussion:
display-panes missing pane size when status-position == top
(too old to reply)
John O'Meara
2015-05-07 03:14:30 UTC
Permalink
I noticed today that when status-position is set to top and the
display-panes command is run, panes which touch the top don't have the size
info displayed in the corner, and other panes get their size info embedded
in their upper border (actually, I think the size is printed, just on the
status line and immediately overwritten by the status line). When
status-position is set to bottom, all panes get their size in the upper
right hand corner.

The attached patch seems to fix this, making the size show in the upper
right corner in both cases.
Nicholas Marriott
2015-05-07 07:19:26 UTC
Permalink
Thanks. I made a slightly different change which passes the flag in from
screen_redraw_draw_panes.

Shows how many people use the status line at the top...
Post by John O'Meara
I noticed today that when status-position is set to top and the
display-panes command is run, panes which touch the top don't have the
size info displayed in the corner, and other panes get their size info
embedded in their upper border (actually, I think the size is printed,
just on the status line and immediately overwritten* by the status line).
When status-position is set to bottom, all panes get their size in the
upper right hand corner.*
The attached patch seems to fix this, making the size show in the upper
right corner in both cases.
diff --git a/screen-redraw.c b/screen-redraw.c
index e3369b8..b1296c9 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -396,6 +396,9 @@ screen_redraw_draw_number(struct client *c, struct window_pane *wp)
px = wp->sx / 2; py = wp->sy / 2;
xoff = wp->xoff; yoff = wp->yoff;
+ if (options_get_number(oo, "status") && options_get_number(oo, "status-position") == 0)
+ yoff++;
+
if (wp->sx < len * 6 || wp->sy < 5) {
tty_cursor(tty, xoff + px - len / 2, yoff + py);
goto draw_text;
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Suraj N. Kurapati
2015-05-07 17:48:58 UTC
Permalink
Post by Nicholas Marriott
Shows how many people use the status line at the top...
I use status-position top, but alas never display-panes. :(

Loading...