aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2016-04-29 15:00:48 +0000
committernicm <nicm>2016-04-29 15:00:48 +0000
commit0509be07404a4f4626bbdab56d858f657dc68604 (patch)
treeae0d8196081ac903121f0d2e4ac754a763a3689d /window.c
parent0d84fdd95303a6ed4dcd761425e35f3731b86725 (diff)
downloadrtmux-0509be07404a4f4626bbdab56d858f657dc68604.tar.gz
rtmux-0509be07404a4f4626bbdab56d858f657dc68604.tar.bz2
rtmux-0509be07404a4f4626bbdab56d858f657dc68604.zip
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.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
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);