From 0509be07404a4f4626bbdab56d858f657dc68604 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 29 Apr 2016 15:00:48 +0000 Subject: Add option to include status text in the pane borders. If pane-border-status is set to "top" or "bottom" (rather than "off"), every pane has a permanent top or bottom border containing the text from pane-border-format. Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and simplified by me. --- window.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'window.c') diff --git a/window.c b/window.c index ff90906f..ad7f36d9 100644 --- a/window.c +++ b/window.c @@ -764,6 +764,8 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit) screen_init(&wp->base, sx, sy, hlimit); wp->screen = &wp->base; + screen_init(&wp->status_screen, 1, 1, 0); + if (gethostname(host, sizeof host) == 0) screen_set_title(&wp->base, host); -- cgit